Packages
protox
1.6.7
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. Used to bootstrap the generation process as protoc passes
# parsed protobuf files using binary protobuf.
# 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,
[
Protox.Field.new!(
tag: 1,
label: :repeated,
name: :file,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.FileDescriptorProto}
)
]
},
{
Protox.Google.Protobuf.FileDescriptorProto,
:proto3,
[
# Ignored: 3, 6, 8, 9, 10, 11
Protox.Field.new!(
tag: 1,
label: :none,
name: :name,
kind: {:scalar, ""},
type: :string
),
Protox.Field.new!(
tag: 2,
label: :none,
name: :package,
kind: {:scalar, ""},
type: :string
),
Protox.Field.new!(
tag: 4,
label: :repeated,
name: :message_type,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.DescriptorProto}
),
Protox.Field.new!(
tag: 5,
label: :repeated,
name: :enum_type,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.EnumDescriptorProto}
),
Protox.Field.new!(
tag: 7,
label: :repeated,
name: :extension,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.FieldDescriptorProto}
),
Protox.Field.new!(
tag: 12,
label: :none,
name: :syntax,
kind: {:scalar, ""},
type: :string
)
]
},
{
Protox.Google.Protobuf.DescriptorProto.ExtensionRange,
:proto3,
[
Protox.Field.new!(
tag: 1,
label: :none,
name: :start,
kind: {:scalar, 0},
type: :int32
),
Protox.Field.new!(tag: 2, label: :none, name: :end, kind: {:scalar, 0}, type: :int32)
]
},
# Protox.Google.Protobuf.DescriptorProto.ReservedRange ignored
{
Protox.Google.Protobuf.DescriptorProto,
:proto3,
[
# Ignored: 9, 10
Protox.Field.new!(
tag: 1,
label: :none,
name: :name,
kind: {:scalar, nil},
type: :string
),
Protox.Field.new!(
tag: 2,
label: :repeated,
name: :field,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.FieldDescriptorProto}
),
Protox.Field.new!(
tag: 6,
label: :repeated,
name: :extension,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.FieldDescriptorProto}
),
Protox.Field.new!(
tag: 3,
label: :repeated,
name: :nested_type,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.DescriptorProto}
),
Protox.Field.new!(
tag: 4,
label: :repeated,
name: :enum_type,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.EnumDescriptorProto}
),
Protox.Field.new!(
tag: 5,
label: :repeated,
name: :extension_range,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.DescriptorProto.ExtensionRange}
),
Protox.Field.new!(
tag: 8,
label: :repeated,
name: :oneof_decl,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.OneofDescriptorProto}
),
Protox.Field.new!(
tag: 7,
label: :none,
name: :options,
kind: {:scalar, nil},
type: {:message, Protox.Google.Protobuf.MessageOptions}
)
]
},
{
Protox.Google.Protobuf.FieldDescriptorProto,
:proto3,
[
# Ignored: 10
Protox.Field.new!(
tag: 1,
label: :none,
name: :name,
kind: {:scalar, nil},
type: :string
),
Protox.Field.new!(
tag: 3,
label: :none,
name: :number,
kind: {:scalar, nil},
type: :int32
),
Protox.Field.new!(
tag: 4,
label: :none,
name: :label,
kind: {:scalar, nil},
type: {:enum, Protox.Google.Protobuf.FieldDescriptorProto.Label}
),
Protox.Field.new!(
tag: 5,
label: :none,
name: :type,
kind: {:scalar, nil},
type: {:enum, Protox.Google.Protobuf.FieldDescriptorProto.Type}
),
Protox.Field.new!(
tag: 6,
label: :none,
name: :type_name,
kind: {:scalar, nil},
type: :string
),
Protox.Field.new!(
tag: 2,
label: :none,
name: :extendee,
kind: {:scalar, nil},
type: :string
),
Protox.Field.new!(
tag: 7,
label: :none,
name: :default_value,
kind: {:scalar, nil},
type: :string
),
Protox.Field.new!(
tag: 9,
label: :none,
name: :oneof_index,
kind: {:scalar, nil},
type: :int32
),
Protox.Field.new!(
tag: 8,
label: :none,
name: :options,
kind: {:scalar, nil},
type: {:message, Protox.Google.Protobuf.FieldOptions}
),
Protox.Field.new!(
tag: 17,
label: :none,
name: :proto3_optional,
kind: {:scalar, false},
type: :bool
)
]
},
{
Protox.Google.Protobuf.OneofDescriptorProto,
:proto3,
[
# Ignored: 2
Protox.Field.new!(
tag: 1,
label: :none,
name: :name,
kind: {:scalar, nil},
type: :string
)
]
},
{
Protox.Google.Protobuf.EnumDescriptorProto,
:proto3,
[
# Ignored: 3
Protox.Field.new!(
tag: 1,
label: :none,
name: :name,
kind: {:scalar, nil},
type: :string
),
Protox.Field.new!(
tag: 2,
label: :repeated,
name: :value,
kind: :unpacked,
type: {:message, Protox.Google.Protobuf.EnumValueDescriptorProto}
)
]
},
{
Protox.Google.Protobuf.EnumValueDescriptorProto,
:proto3,
[
# Ignored: 3
Protox.Field.new!(
tag: 1,
label: :none,
name: :name,
kind: {:scalar, nil},
type: :string
),
Protox.Field.new!(
tag: 2,
label: :none,
name: :number,
kind: {:scalar, nil},
type: :int32
)
]
},
# ServiceDescriptorProto ignored
# MethodDescriptorProto ignored
# FileOptions ignored
{
Protox.Google.Protobuf.MessageOptions,
:proto3,
[
# 1, 2, 999 ignored
Protox.Field.new!(
tag: 3,
label: :none,
name: :deprecated,
kind: {:scalar, false},
type: :bool
),
Protox.Field.new!(
tag: 7,
label: :none,
name: :map_entry,
kind: {:scalar, false},
type: :bool
)
]
},
{
Protox.Google.Protobuf.FieldOptions,
:proto3,
[
# 1, 6, 5, 10, 999 ignored
Protox.Field.new!(
tag: 2,
label: :none,
name: :packed,
kind: {:scalar, nil},
type: :bool
),
Protox.Field.new!(
tag: 3,
label: :none,
name: :deprecated,
kind: {:scalar, false},
type: :bool
)
]
}
# OneofOptions ignored
# EnumOptions ignored
# EnumValueOptions ignored
# ServiceOptions ignored
# MethodOptions ignored
# UninterpretedOption ignored
# SourceCodeInfo ignored
# GeneratedCodeInfo ignored
]
end