Protobuf::CodeGeneratorRequest::FieldOptions
Inherits JSON::Serializable < Protobuf::Message < Struct < Value < Object
Constants
FIELDS = {2 => {name: :packed, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field
Constructors
new(buf : Protobuf::Buffer)
new(packed : Bool | Nil = nil)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Class methods
from_protobuf(io)
Instance methods
[](key : String)
[]=(key : String, val)
[]?(key : String)
packed
packed=(packed : Bool | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf