Google::Protobuf::FieldOptions
Inherits Protobuf::Message < Struct < Value < Object
Constants
FIELDS = {1 => {name: :ctype, pb_type: FieldOptions::CType, crystal_type: FieldOptions::CType, cast_type: FieldOptions::CType?, native: false, optional: true, repeated: false, default: FieldOptions::CType::STRING, packed: false}, 2 => {name: :packed, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :jstype, pb_type: FieldOptions::JSType, crystal_type: FieldOptions::JSType, cast_type: FieldOptions::JSType?, native: false, optional: true, repeated: false, default: FieldOptions::JSType::JSNORMAL, packed: false}, 5 => {name: :lazy, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 3 => {name: :deprecated, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 10 => {name: :weak, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 999 => {name: :uninterpreted_option, pb_type: UninterpretedOption, crystal_type: UninterpretedOption, cast_type: Array(UninterpretedOption)?, native: false, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
new(buf : ::Protobuf::Buffer)
new(ctype : FieldOptions::CType | Nil = FieldOptions::CType::STRING.as(FieldOptions::CType), packed : Bool | Nil = nil, jstype : FieldOptions::JSType | Nil = FieldOptions::JSType::JSNORMAL.as(FieldOptions::JSType), lazy : Bool | Nil = false.as(Bool), deprecated : Bool | Nil = false.as(Bool), weak : Bool | Nil = false.as(Bool), uninterpreted_option : Array(UninterpretedOption) | Nil = nil)
Class methods
from_protobuf(io)
Instance methods
[](key : String)
ctype
ctype=(ctype : FieldOptions::CType | Nil)
deprecated
deprecated=(deprecated : Bool | Nil)
jstype
jstype=(jstype : FieldOptions::JSType | Nil)
lazy
lazy=(lazy : Bool | Nil)
packed
packed=(packed : Bool | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf
uninterpreted_option
uninterpreted_option=(uninterpreted_option : Array(UninterpretedOption) | Nil)
weak
weak=(weak : Bool | Nil)