Class PageRef (0.1.0)

PageRef(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a weak reference to a page element within a document.

Attributes

NameDescription
page int
Required. Index into the Document.pages element
layout_type .document.Document.PageAnchor.PageRef.LayoutType
Optional. The type of the layout element that is being referenced. If not specified the whole page is assumed to be referenced.
layout_id str
Optional. The Page.Layout.id on the page that this element references. If [LayoutRef.type][] is specified this id must also be specified.

Classes

LayoutType

LayoutType(value)

The type of layout that is being referenced.

Methods

__delattr__

__delattr__(key)

Delete the value on the given field.

This is generally equivalent to setting a falsy value.

__eq__

__eq__(other)

Return True if the messages are equal, False otherwise.

__ne__

__ne__(other)

Return True if the messages are unequal, False otherwise.

__setattr__

__setattr__(key, value)

Set the value on the given field.

For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.