struct Protobuf::CodeGeneratorRequest::UninterpretedOption

Included Modules

Defined in:

protobuf/generator.cr

Constant Summary

FIELDS = {2 => {name: :name, pb_type: UninterpretedOption::NamePart, crystal_type: UninterpretedOption::NamePart, cast_type: Array(UninterpretedOption::NamePart)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :identifier_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :positive_int_value, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :negative_int_value, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :double_value, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :string_value, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :aggregate_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Protobuf::Message

==(other : Protobuf::Message) ==

Macros inherited from module Protobuf::Message

_add_field(tag, name, pb_type, options = {} of Symbol => Bool) _add_field, _generate_decoder(pbVer) _generate_decoder, _generate_encoder(pbVer) _generate_encoder, _generate_getters_setters _generate_getters_setters, _generate_hash_getters _generate_hash_getters, contract(&blk) contract, contract_of(syntax, &blk) contract_of, extensions(range) extensions, optional(name, type, tag, default = nil, repeated = false, packed = false) optional, repeated(name, type, tag, packed = false) repeated, required(name, type, tag, default = nil) required

Constructor Detail

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

def self.new(name : Array(UninterpretedOption::NamePart) | Nil = nil, identifier_value : String | Nil = nil, positive_int_value : UInt64 | Nil = nil, negative_int_value : Int64 | Nil = nil, double_value : Float64 | Nil = nil, string_value : Slice(UInt8) | Nil = nil, aggregate_value : String | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def aggregate_value : String | Nil #

def aggregate_value=(aggregate_value : String | Nil) #

def double_value : Float64 | Nil #

def double_value=(double_value : Float64 | Nil) #

def identifier_value : String | Nil #

def identifier_value=(identifier_value : String | Nil) #

def name : Array(UninterpretedOption::NamePart) | Nil #

def name=(name : Array(UninterpretedOption::NamePart) | Nil) #

def negative_int_value : Int64 | Nil #

def negative_int_value=(negative_int_value : Int64 | Nil) #

def positive_int_value : UInt64 | Nil #

def positive_int_value=(positive_int_value : UInt64 | Nil) #

def string_value : Slice(UInt8) | Nil #

def string_value=(string_value : Slice(UInt8) | Nil) #

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

def to_protobuf #