class Protobuf::Schema::Field
- Protobuf::Schema::Field
- Reference
- Object
Defined in:
protobuf/schema/field.crConstructors
Instance Method Summary
- #crystal_type?
- #enum?
- #from_protobuf(buf)
- #memo : String
- #memo=(memo : String)
- #name : String
- #name=(name : String)
- #native?
- #optional?
- #packed : Bool
- #packed=(packed : Bool)
- #repeated?
- #required?
- #rule : String | Nil
- #rule=(rule : String | Nil)
- #tag : Int32
- #tag=(tag : Int32)
- #to_protobuf(buf : Protobuf::Buffer, tag, wire, value)
- #to_protobuf(buf : Protobuf::Buffer, value)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #type : String
- #type=(type : String)
- #version : Int32
- #version=(version : Int32)
- #wire
Constructor Detail
def self.new(version : Int32, rule : Nil | String, type : String, name : String, tag : Int32, packed : Bool = false, memo : String | Nil = nil)
#
Instance Method Detail
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>