class Apps::Google::DescriptorProto
- Apps::Google::DescriptorProto
- Reference
- Object
Included Modules
- Protobuf::Message
Defined in:
pb-Apps/descriptor.pb.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: :field, pb_type: FieldDescriptorProto, crystal_type: FieldDescriptorProto, cast_type: Array(FieldDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :extension, pb_type: FieldDescriptorProto, crystal_type: FieldDescriptorProto, cast_type: Array(FieldDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :nested_type, pb_type: DescriptorProto, crystal_type: DescriptorProto, cast_type: Array(DescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :enum_type, pb_type: EnumDescriptorProto, crystal_type: EnumDescriptorProto, cast_type: Array(EnumDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :extension_range, pb_type: DescriptorProto::ExtensionRange, crystal_type: DescriptorProto::ExtensionRange, cast_type: Array(DescriptorProto::ExtensionRange)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :oneof_decl, pb_type: OneofDescriptorProto, crystal_type: OneofDescriptorProto, cast_type: Array(OneofDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :options, pb_type: MessageOptions, crystal_type: MessageOptions, cast_type: MessageOptions?, native: false, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :reserved_range, pb_type: DescriptorProto::ReservedRange, crystal_type: DescriptorProto::ReservedRange, cast_type: Array(DescriptorProto::ReservedRange)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 10 => {name: :reserved_name, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(name : String | Nil = nil, field : Array(FieldDescriptorProto) | Nil = nil, extension : Array(FieldDescriptorProto) | Nil = nil, nested_type : Array(DescriptorProto) | Nil = nil, enum_type : Array(EnumDescriptorProto) | Nil = nil, extension_range : Array(DescriptorProto::ExtensionRange) | Nil = nil, oneof_decl : Array(OneofDescriptorProto) | Nil = nil, options : MessageOptions | Nil = nil, reserved_range : Array(DescriptorProto::ReservedRange) | Nil = nil, reserved_name : Array(String) | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #enum_type : Array(EnumDescriptorProto) | Nil
- #enum_type=(enum_type : Array(EnumDescriptorProto) | Nil)
- #extension : Array(FieldDescriptorProto) | Nil
- #extension=(extension : Array(FieldDescriptorProto) | Nil)
- #extension_range : Array(DescriptorProto::ExtensionRange) | Nil
- #extension_range=(extension_range : Array(DescriptorProto::ExtensionRange) | Nil)
- #field : Array(FieldDescriptorProto) | Nil
- #field=(field : Array(FieldDescriptorProto) | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #nested_type : Array(DescriptorProto) | Nil
- #nested_type=(nested_type : Array(DescriptorProto) | Nil)
- #oneof_decl : Array(OneofDescriptorProto) | Nil
- #oneof_decl=(oneof_decl : Array(OneofDescriptorProto) | Nil)
- #options : MessageOptions | Nil
- #options=(options : MessageOptions | Nil)
- #reserved_name : Array(String) | Nil
- #reserved_name=(reserved_name : Array(String) | Nil)
- #reserved_range : Array(DescriptorProto::ReservedRange) | Nil
- #reserved_range=(reserved_range : Array(DescriptorProto::ReservedRange) | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(name : String | Nil = nil, field : Array(FieldDescriptorProto) | Nil = nil, extension : Array(FieldDescriptorProto) | Nil = nil, nested_type : Array(DescriptorProto) | Nil = nil, enum_type : Array(EnumDescriptorProto) | Nil = nil, extension_range : Array(DescriptorProto::ExtensionRange) | Nil = nil, oneof_decl : Array(OneofDescriptorProto) | Nil = nil, options : MessageOptions | Nil = nil, reserved_range : Array(DescriptorProto::ReservedRange) | Nil = nil, reserved_name : Array(String) | Nil = nil)
#