struct Protobuf::CodeGeneratorRequest::FieldDescriptorProto
- Protobuf::CodeGeneratorRequest::FieldDescriptorProto
- Struct
- Value
- Object
Included Modules
Defined in:
protobuf/generator.crConstant Summary
-
FIELDS =
{1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :number, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :label, pb_type: CodeGeneratorRequest::FieldDescriptorProto::Label, crystal_type: CodeGeneratorRequest::FieldDescriptorProto::Label, cast_type: CodeGeneratorRequest::FieldDescriptorProto::Label?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :type, pb_type: CodeGeneratorRequest::FieldDescriptorProto::Type, crystal_type: CodeGeneratorRequest::FieldDescriptorProto::Type, cast_type: CodeGeneratorRequest::FieldDescriptorProto::Type?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :type_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :extended, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :default_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :options, pb_type: FieldOptions, crystal_type: FieldOptions, cast_type: FieldOptions?, native: false, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(name : String | Nil = nil, number : Int32 | Nil = nil, label : CodeGeneratorRequest::FieldDescriptorProto::Label | Nil = nil, type : CodeGeneratorRequest::FieldDescriptorProto::Type | Nil = nil, type_name : String | Nil = nil, extended : String | Nil = nil, default_value : String | Nil = nil, options : FieldOptions | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #default_value : String | Nil
- #default_value=(default_value : String | Nil)
- #extended : String | Nil
- #extended=(extended : String | Nil)
- #label : CodeGeneratorRequest::FieldDescriptorProto::Label | Nil
- #label=(label : CodeGeneratorRequest::FieldDescriptorProto::Label | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #number : Int32 | Nil
- #number=(number : Int32 | Nil)
- #options : FieldOptions | Nil
- #options=(options : FieldOptions | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #type : CodeGeneratorRequest::FieldDescriptorProto::Type | Nil
- #type=(type : CodeGeneratorRequest::FieldDescriptorProto::Type | Nil)
- #type_name : String | Nil
- #type_name=(type_name : String | Nil)
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 : String | Nil = nil, number : Int32 | Nil = nil, label : CodeGeneratorRequest::FieldDescriptorProto::Label | Nil = nil, type : CodeGeneratorRequest::FieldDescriptorProto::Type | Nil = nil, type_name : String | Nil = nil, extended : String | Nil = nil, default_value : String | Nil = nil, options : FieldOptions | Nil = nil)
#