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)
SourceInstance methods
crystal_type?
Sourceenum?
Sourcefrom_protobuf(buf)
Sourcememo
Sourcememo=(memo : String)
Sourcename
Sourcename=(name : String)
Sourcenative?
Sourceoptional?
Sourcepacked
Sourcepacked=(packed : Bool)
Sourcerepeated?
Sourcerequired?
Sourcerule
Sourcerule=(rule : String | Nil)
Sourcetag
Sourcetag=(tag : Int32)
Sourceto_protobuf(buf : Protobuf::Buffer, tag, wire, value)
Sourceto_protobuf(buf : Protobuf::Buffer, value)
Sourceto_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>
type
Sourcetype=(type : String)
Sourceversion
Sourceversion=(version : Int32)
Sourcewire
Source