struct

Google::Protobuf::OneofDescriptorProto

Inherits Protobuf::Message < Struct < Value < Object

Constants

FIELDS = {1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :options, pb_type: OneofOptions, crystal_type: OneofOptions, cast_type: OneofOptions?, native: false, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

new(buf : ::Protobuf::Buffer)
new(name : String | Nil = nil, options : OneofOptions | Nil = nil)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
name
name=(name : String | Nil)
options
options=(options : OneofOptions | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf