struct Protobuf::CodeGeneratorRequest
- Protobuf::CodeGeneratorRequest
- Struct
- Value
- Object
Included Modules
Defined in:
protobuf/generator.crConstant Summary
-
FIELDS =
{1 => {name: :file_to_generate, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 2 => {name: :parameter, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :proto_file, pb_type: CodeGeneratorRequest::FileDescriptorProto, crystal_type: CodeGeneratorRequest::FileDescriptorProto, cast_type: Array(CodeGeneratorRequest::FileDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(file_to_generate : Array(String) | Nil = nil, parameter : String | Nil = nil, proto_file : Array(CodeGeneratorRequest::FileDescriptorProto) | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #file_to_generate : Array(String) | Nil
- #file_to_generate=(file_to_generate : Array(String) | Nil)
- #parameter : String | Nil
- #parameter=(parameter : String | Nil)
- #proto_file : Array(CodeGeneratorRequest::FileDescriptorProto) | Nil
- #proto_file=(proto_file : Array(CodeGeneratorRequest::FileDescriptorProto) | 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(file_to_generate : Array(String) | Nil = nil, parameter : String | Nil = nil, proto_file : Array(CodeGeneratorRequest::FileDescriptorProto) | Nil = nil)
#