struct Protobuf::CodeGeneratorRequest::UninterpretedOption
- Protobuf::CodeGeneratorRequest::UninterpretedOption
- Struct
- Value
- Object
Included Modules
Defined in:
protobuf/generator.crConstant Summary
-
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 Method Summary
Instance Method Summary
- #[](key : String)
- #aggregate_value : String | Nil
- #aggregate_value=(aggregate_value : String | Nil)
- #double_value : Float64 | Nil
- #double_value=(double_value : Float64 | Nil)
- #identifier_value : String | Nil
- #identifier_value=(identifier_value : String | Nil)
- #name : Array(UninterpretedOption::NamePart) | Nil
- #name=(name : Array(UninterpretedOption::NamePart) | Nil)
- #negative_int_value : Int64 | Nil
- #negative_int_value=(negative_int_value : Int64 | Nil)
- #positive_int_value : UInt64 | Nil
- #positive_int_value=(positive_int_value : UInt64 | Nil)
- #string_value : Slice(UInt8) | Nil
- #string_value=(string_value : Slice(UInt8) | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Instance methods inherited from module Protobuf::Message
==(other : Protobuf::Message)
==
Macros inherited from module Protobuf::Message
_add_field(tag, name, pb_type, options = {} of Symbol => Bool)
_add_field,
_generate_decoder(pbVer)
_generate_decoder,
_generate_encoder(pbVer)
_generate_encoder,
_generate_getters_setters
_generate_getters_setters,
_generate_hash_getters
_generate_hash_getters,
contract(&blk)
contract,
contract_of(syntax, &blk)
contract_of,
extensions(range)
extensions,
optional(name, type, tag, default = nil, repeated = false, packed = false)
optional,
repeated(name, type, tag, packed = false)
repeated,
required(name, type, tag, default = nil)
required
Constructor Detail
def self.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)
#