struct Murcure::Protos::ContextActionModify

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :action, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :context, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :operation, pb_type: ContextActionModify::Operation, crystal_type: ContextActionModify::Operation, cast_type: ContextActionModify::Operation?, native: false, optional: true, repeated: false, 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(action : String, text : String | Nil = nil, context : UInt32 | Nil = nil, operation : ContextActionModify::Operation | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def action : String #

def action=(action : String) #

def context : UInt32 | Nil #

def context=(context : UInt32 | Nil) #

def operation : ContextActionModify::Operation | Nil #

def operation=(operation : ContextActionModify::Operation | Nil) #

def text : String | Nil #

def text=(text : String | Nil) #

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

def to_protobuf #