Packages
protox
0.24.0
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-dev
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
retired
1.7.3
1.7.2
1.7.1
1.7.0
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.25.0
0.24.0
0.23.1
0.23.0
0.22.0
0.21.0
0.20.0
0.19.1
0.19.0
0.18.0
0.17.0
0.16.2
0.16.1
0.16.0
0.15.2
0.15.1
0.15.0
0.14.0
0.13.0
0.12.1
0.12.0
0.11.1
0.11.0
0.10.0
0.9.1
0.9.0
0.8.0
0.7.1
0.7.0
A fast, easy to use and 100% conformant Elixir library for Google Protocol Buffers (aka protobuf)
Current section
Files
Jump to
Current section
Files
lib/protox/descriptor.ex
defmodule Protox.Descriptor do
@moduledoc false
# Transcription of descriptor.proto.
# https://raw.githubusercontent.com/google/protobuf/master/src/google/protobuf/descriptor.proto
use Protox.Define,
enums: [
{
Protox.Google.Protobuf.FieldDescriptorProto.Type,
[
{1, :double},
{2, :float},
{3, :int64},
{4, :uint64},
{5, :int32},
{6, :fixed64},
{7, :fixed32},
{8, :bool},
{9, :string},
{10, :group},
{11, :message},
{12, :bytes},
{13, :uint32},
{14, :enum},
{15, :sfixed32},
{16, :sfixed64},
{17, :sint32},
{18, :sint64}
]
},
{
Protox.Google.Protobuf.FieldDescriptorProto.Label,
[
{1, :optional},
{2, :required},
{3, :repeated}
]
}
],
messages: [
{
Protox.Google.Protobuf.FileDescriptorSet,
:proto3,
[
{1, :repeated, :file, :unpacked, {:message, Protox.Google.Protobuf.FileDescriptorProto}}
]
},
{
Protox.Google.Protobuf.FileDescriptorProto,
:proto3,
[
# Ignored: 3, 6, 8, 9, 10, 11
{1, :none, :name, {:default, ""}, :string},
{2, :none, :package, {:default, ""}, :string},
{4, :repeated, :message_type, :unpacked,
{:message, Protox.Google.Protobuf.DescriptorProto}},
{5, :repeated, :enum_type, :unpacked,
{:message, Protox.Google.Protobuf.EnumDescriptorProto}},
{7, :repeated, :extension, :unpacked,
{:message, Protox.Google.Protobuf.FieldDescriptorProto}},
{12, :none, :syntax, {:default, ""}, :string}
]
},
{
Protox.Google.Protobuf.DescriptorProto.ExtensionRange,
:proto3,
[
{1, :none, :start, {:default, 0}, :int32},
{2, :none, :end, {:default, 0}, :int32}
]
},
# Protox.Google.Protobuf.DescriptorProto.ReservedRange ignored
{
Protox.Google.Protobuf.DescriptorProto,
:proto3,
[
# Ignored: 9, 10
{1, :none, :name, {:default, nil}, :string},
{2, :repeated, :field, :unpacked,
{:message, Protox.Google.Protobuf.FieldDescriptorProto}},
{6, :repeated, :extension, :unpacked,
{:message, Protox.Google.Protobuf.FieldDescriptorProto}},
{3, :repeated, :nested_type, :unpacked,
{:message, Protox.Google.Protobuf.DescriptorProto}},
{4, :repeated, :enum_type, :unpacked,
{:message, Protox.Google.Protobuf.EnumDescriptorProto}},
{5, :repeated, :extension_range, :unpacked,
{:message, Protox.Google.Protobuf.DescriptorProto.ExtensionRange}},
{8, :repeated, :oneof_decl, :unpacked,
{:message, Protox.Google.Protobuf.OneofDescriptorProto}},
{7, :none, :options, {:default, nil}, {:message, Protox.Google.Protobuf.MessageOptions}}
]
},
{
Protox.Google.Protobuf.FieldDescriptorProto,
:proto3,
[
# Ignored: 10
{1, :none, :name, {:default, nil}, :string},
{3, :none, :number, {:default, nil}, :int32},
{4, :none, :label, {:default, nil},
{:enum, Protox.Google.Protobuf.FieldDescriptorProto.Label}},
{5, :none, :type, {:default, nil},
{:enum, Protox.Google.Protobuf.FieldDescriptorProto.Type}},
{6, :none, :type_name, {:default, nil}, :string},
{2, :none, :extendee, {:default, nil}, :string},
{7, :none, :default_value, {:default, nil}, :string},
{9, :none, :oneof_index, {:default, nil}, :int32},
{8, :none, :options, {:default, nil}, {:message, Protox.Google.Protobuf.FieldOptions}}
]
},
{
Protox.Google.Protobuf.OneofDescriptorProto,
:proto3,
[
# Ignored: 2
{1, :none, :name, {:default, nil}, :string}
]
},
{
Protox.Google.Protobuf.EnumDescriptorProto,
:proto3,
[
# Ignored: 3
{1, :none, :name, {:default, nil}, :string},
{2, :repeated, :value, :unpacked,
{:message, Protox.Google.Protobuf.EnumValueDescriptorProto}}
]
},
{
Protox.Google.Protobuf.EnumValueDescriptorProto,
:proto3,
[
# Ignored: 3
{1, :none, :name, {:default, nil}, :string},
{2, :none, :number, {:default, nil}, :int32}
]
},
# ServiceDescriptorProto ignored
# MethodDescriptorProto ignored
# FileOptions ignored
{
Protox.Google.Protobuf.MessageOptions,
:proto3,
[
# 1, 2, 999 ignored
{3, :none, :deprecated, {:default, false}, :bool},
{7, :none, :map_entry, {:default, false}, :bool}
]
},
{
Protox.Google.Protobuf.FieldOptions,
:proto3,
[
# 1, 6, 5, 10, 999 ignored
{2, :none, :packed, {:default, nil}, :bool},
{3, :none, :deprecated, {:default, false}, :bool}
]
}
# OneofOptions ignored
# EnumOptions ignored
# EnumValueOptions ignored
# ServiceOptions ignored
# MethodOptions ignored
# UninterpretedOption ignored
# SourceCodeInfo ignored
# GeneratedCodeInfo ignored
]
end