struct Apps::Google::FieldOptions
- Apps::Google::FieldOptions
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
pb-Apps/descriptor.pb.crConstant Summary
-
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 Method Summary
Instance Method Summary
- #[](key : String)
- #ctype : FieldOptions::CType | Nil
- #ctype=(ctype : FieldOptions::CType | Nil)
- #deprecated : Bool | Nil
- #deprecated=(deprecated : Bool | Nil)
- #jstype : FieldOptions::JSType | Nil
- #jstype=(jstype : FieldOptions::JSType | Nil)
- #lazy : Bool | Nil
- #lazy=(lazy : Bool | Nil)
- #packed : Bool | Nil
- #packed=(packed : Bool | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #uninterpreted_option : Array(UninterpretedOption) | Nil
- #uninterpreted_option=(uninterpreted_option : Array(UninterpretedOption) | Nil)
- #weak : Bool | Nil
- #weak=(weak : Bool | Nil)
Constructor Detail
def self.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)
#