struct Protobuf::CodeGeneratorRequest::FileDescriptorProto
- Protobuf::CodeGeneratorRequest::FileDescriptorProto
- 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}, 2 => {name: :package, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :message_type, pb_type: CodeGeneratorRequest::DescriptorProto, crystal_type: CodeGeneratorRequest::DescriptorProto, cast_type: Array(CodeGeneratorRequest::DescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :enum_type, pb_type: CodeGeneratorRequest::EnumDescriptorProto, crystal_type: CodeGeneratorRequest::EnumDescriptorProto, cast_type: Array(CodeGeneratorRequest::EnumDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 12 => {name: :syntax, 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 : String | Nil = nil, package : String | Nil = nil, message_type : Array(CodeGeneratorRequest::DescriptorProto) | Nil = nil, enum_type : Array(CodeGeneratorRequest::EnumDescriptorProto) | Nil = nil, syntax : String | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #crystal_ns
- #enum_type : Array(CodeGeneratorRequest::EnumDescriptorProto) | Nil
- #enum_type=(enum_type : Array(CodeGeneratorRequest::EnumDescriptorProto) | Nil)
- #message_type : Array(CodeGeneratorRequest::DescriptorProto) | Nil
- #message_type=(message_type : Array(CodeGeneratorRequest::DescriptorProto) | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #package : String | Nil
- #package=(package : String | Nil)
- #syntax : String | Nil
- #syntax=(syntax : String | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Instance methods inherited from module Protobuf::Message
==(other : Protobuf::Message)
==
Constructor Detail
def self.new(name : String | Nil = nil, package : String | Nil = nil, message_type : Array(CodeGeneratorRequest::DescriptorProto) | Nil = nil, enum_type : Array(CodeGeneratorRequest::EnumDescriptorProto) | Nil = nil, syntax : String | Nil = nil)
#