class Protobuf::Schema::Field

Defined in:

protobuf/schema/field.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(version : Int32, rule : Nil | String, type : String, name : String, tag : Int32, packed : Bool = false, memo : String | Nil = nil) #

[View source]

Instance Method Detail

def crystal_type? #

[View source]
def enum? #

[View source]
def from_protobuf(buf) #

[View source]
def memo : String #

[View source]
def memo=(memo : String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def native? #

[View source]
def optional? #

[View source]
def packed : Bool #

[View source]
def packed=(packed : Bool) #

[View source]
def repeated? #

[View source]
def required? #

[View source]
def rule : String | Nil #

[View source]
def rule=(rule : String | Nil) #

[View source]
def tag : Int32 #

[View source]
def tag=(tag : Int32) #

[View source]
def to_protobuf(buf : Protobuf::Buffer, tag, wire, value) #

[View source]
def to_protobuf(buf : Protobuf::Buffer, value) #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def version : Int32 #

[View source]
def version=(version : Int32) #

[View source]
def wire #

[View source]