Pbuf.Protoc.OneOf (pbuf v0.1.16)

This is the 'parent' of OneOfs. It acts as both configuration via the context and as a pseudo Field when rendering the template.

Link to this section Summary

Link to this section Types

Specs

t() :: %Pbuf.Protoc.OneOf{
  default: String.t(),
  name: String.t(),
  typespec: String.t()
}

Link to this section Functions

Link to this function

add(oneof, field)

Specs

add(t(), Pbuf.Protoc.Field.t()) :: t()

Specs

new(String.t()) :: t()