class

Protobuf::Schema::Field

Inherits Reference < Object

Constructors

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

Instance methods

crystal_type?
Source
enum?
Source
from_protobuf(buf)
Source
memo
Source
memo=(memo : String)
Source
name
Source
name=(name : String)
Source
native?
Source
optional?
Source
packed
Source
packed=(packed : Bool)
Source
repeated?
Source
required?
Source
rule
Source
rule=(rule : String | Nil)
Source
tag=(tag : Int32)
Source
to_protobuf(buf : Protobuf::Buffer, tag, wire, value)
Source
to_protobuf(buf : Protobuf::Buffer, value)
Source
to_s(io : IO)

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>
Source
type
Source
type=(type : String)
Source
version
Source
version=(version : Int32)
Source
wire
Source