struct

Protobuf::CodeGeneratorRequest::UninterpretedOption

Inherits Protobuf::Message / Struct / Value / Object

Constants

FIELDS = {2 => {name: :name, pb_type: UninterpretedOption::NamePart, crystal_type: UninterpretedOption::NamePart, cast_type: Array(UninterpretedOption::NamePart)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :identifier_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :positive_int_value, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :negative_int_value, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :double_value, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :string_value, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :aggregate_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

new(buf : Protobuf::Buffer)
new(name : Array(UninterpretedOption::NamePart) | Nil = nil, identifier_value : String | Nil = nil, positive_int_value : UInt64 | Nil = nil, negative_int_value : Int64 | Nil = nil, double_value : Float64 | Nil = nil, string_value : Slice(UInt8) | Nil = nil, aggregate_value : String | Nil = nil)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
aggregate_value
aggregate_value=(aggregate_value : String | Nil)
double_value
double_value=(double_value : Float64 | Nil)
identifier_value
identifier_value=(identifier_value : String | Nil)
name
name=(name : Array(UninterpretedOption::NamePart) | Nil)
negative_int_value
negative_int_value=(negative_int_value : Int64 | Nil)
positive_int_value
positive_int_value=(positive_int_value : UInt64 | Nil)
string_value
string_value=(string_value : Slice(UInt8) | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf

Nested types