# `Protox.OneOf`
[🔗](https://github.com/ahamez/protox/blob/main/lib/protox/one_of.ex#L1)

Represents a [oneof field](https://protobuf.dev/programming-guides/proto3/#oneof) in protobuf.

A oneof field represents a group of fields where only one of them can be set at a time.
This module provides a struct to store the parent field of this oneof group, that is, the
field that effectively contains the set value.

## Fields

* `:parent` - The name the parent field of this oneof group.

# `t`

```elixir
@type t() :: %Protox.OneOf{parent: atom()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
