Skip to content

Commit

Permalink
Remove ignored messages and fields of descriptor.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamez committed Dec 26, 2016
1 parent 2aa4c7b commit 9c0013d
Showing 1 changed file with 8 additions and 27 deletions.
35 changes: 8 additions & 27 deletions lib/protox/descriptor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ defmodule Protox.Descriptor do
{
Google.Protobuf.FileDescriptorProto,
[
# Ignored: 3, 10, 11, 6, 9
# Ignored: 3, 6, 8, 9, 10, 11
{1, :none, :name, {:default, ""}, :string},
{2, :none, :package, {:default, ""}, :string},
{4, :repeated, :message_type, :unpacked, {:message, Google.Protobuf.DescriptorProto}},
{5, :repeated, :enum_type, :unpacked, {:message, Google.Protobuf.EnumDescriptorProto}},
{7, :repeated, :extension, :unpacked, {:message, Google.Protobuf.FieldDescriptorProto}},
{8, :none, :options, {:default, nil}, {:message, Google.Protobuf.FileOptions}},
{12, :none, :syntax, {:default, ""}, :string},
]
},
Expand Down Expand Up @@ -98,8 +97,8 @@ defmodule Protox.Descriptor do
{
Google.Protobuf.OneofDescriptorProto,
[
# Ignored: 2
{1, :none, :name, {:default, nil}, :string},
{2, :none, :options, {:default, nil}, {:message, Google.Protobuf.OneofOptions}},
]
},
{
Expand All @@ -113,20 +112,14 @@ defmodule Protox.Descriptor do
{
Google.Protobuf.EnumValueDescriptorProto,
[
# Ignored: 3
{1, :none, :name, {:default, nil}, :string},
{2, :none, :number, {:default, nil}, :int32},
{3, :none, :options, {:default, nil}, {:message, Google.Protobuf.EnumValueOptions}},
]
},
# Google.Protobuf.ServiceDescriptorProto ignored
# Google.Protobuf.MethodDescriptorProto ignored
{
Google.Protobuf.FileOptions,
[
# 1, 8, 10, 20, 27, 9, 11, 16, 17, 18, 31, 36, 37, 39, 999
{23, :none, :deprecated, {:default, false}, :bool},
]
},
# ServiceDescriptorProto ignored
# MethodDescriptorProto ignored
# FileOptions ignored
{
Google.Protobuf.MessageOptions,
[
Expand All @@ -143,21 +136,9 @@ defmodule Protox.Descriptor do
{3, :none, :deprecated, {:default, false}, :bool},
]
},
{
Google.Protobuf.OneofOptions,
[
# 999 ignored
]
},
# OneofOptions ignored
# EnumOptions ignored
{
Google.Protobuf.EnumValueOptions,
[
# 999 ignored
{1, :none, :deprecated, {:default, false}, :bool},

]
},
# EnumValueOptions ignored
# ServiceOptions ignored
# MethodOptions ignored
# UninterpretedOption ignored
Expand Down

0 comments on commit 9c0013d

Please sign in to comment.