struct Protobuf::CodeGeneratorRequest::MethodOptions

Included Modules

Defined in:

protobuf/generator.cr

Constant Summary

FIELDS = {33 => {name: :deprecated, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 34 => {name: :idempotency_level, pb_type: MethodOptions::IdempotencyLevel, crystal_type: MethodOptions::IdempotencyLevel, cast_type: MethodOptions::IdempotencyLevel?, native: false, optional: true, repeated: false, default: MethodOptions::IdempotencyLevel::IDEMPOTENCYUNKNOWN, 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

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(deprecated : Bool | Nil = false.as(Bool), idempotency_level : MethodOptions::IdempotencyLevel | Nil = MethodOptions::IdempotencyLevel::IDEMPOTENCYUNKNOWN.as(MethodOptions::IdempotencyLevel), uninterpreted_option : Array(UninterpretedOption) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def deprecated : Bool | Nil #

def deprecated=(deprecated : Bool | Nil) #

def idempotency_level : MethodOptions::IdempotencyLevel | Nil #

def idempotency_level=(idempotency_level : MethodOptions::IdempotencyLevel | 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) #