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 "