struct Apps::Google::FieldOptions

Included Modules

Defined in:

pb-Apps/descriptor.pb.cr

Constant 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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

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) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def ctype : FieldOptions::CType | Nil #

def ctype=(ctype : FieldOptions::CType | Nil) #

def deprecated : Bool | Nil #

def deprecated=(deprecated : Bool | Nil) #

def jstype : FieldOptions::JSType | Nil #

def jstype=(jstype : FieldOptions::JSType | Nil) #

def lazy : Bool | Nil #

def lazy=(lazy : Bool | Nil) #

def packed : Bool | Nil #

def packed=(packed : Bool | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def uninterpreted_option : Array(UninterpretedOption) | Nil #

def uninterpreted_option=(uninterpreted_option : Array(UninterpretedOption) | Nil) #

def weak : Bool | Nil #

def weak=(weak : Bool | Nil) #