# Class SecurityPolicyUserDefinedField (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `base` | `str` The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values. This field is a member of `oneof`_ `_base`. |
| `mask` | `str` If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask. This field is a member of `oneof`_ `_mask`. |
| `name` | `str` The name of this field. Must be unique within the policy. This field is a member of `oneof`_ `_name`. |
| `offset` | `int` Offset of the first byte of the field (in network byte order) relative to 'base'. This field is a member of `oneof`_ `_offset`. |
| `size` | `int` Size of the field in bytes. Valid values: 1-4. This field is a member of `oneof`_ `_size`. |

## Classes

### Base

    Base(value)

The base relative to which 'offset' is measured. Possible
values are:

- IPV4: Points to the beginning of the IPv4 header.
- IPV6: Points to the beginning of the IPv6 header.
- TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments.
- UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments.

required