struct Protobuf::CodeGeneratorRequest::MethodDescriptorProto

Included Modules

Defined in:

protobuf/generator.cr

Constant Summary

FIELDS = {1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :input_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :output_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :options, pb_type: MethodOptions, crystal_type: MethodOptions, cast_type: MethodOptions?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :client_streaming, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 6 => {name: :server_streaming, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, 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 : String | Nil = nil, input_type : String | Nil = nil, output_type : String | Nil = nil, options : MethodOptions | Nil = nil, client_streaming : Bool | Nil = false.as(Bool), server_streaming : Bool | Nil = false.as(Bool)) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def client_streaming : Bool | Nil #

def client_streaming=(client_streaming : Bool | Nil) #

def input_type : String | Nil #

def input_type=(input_type : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def options : MethodOptions | Nil #

def options=(options : MethodOptions | Nil) #

def output_type : String | Nil #

def output_type=(output_type : String | Nil) #

def server_streaming : Bool | Nil #

def server_streaming=(server_streaming : Bool | Nil) #

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

def to_protobuf #