Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade protobuf to 0.11 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/google_protos/any.pb.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Google.Protobuf.Any do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :type_url, 1, type: :string, json_name: "typeUrl"
field :value, 2, type: :bytes
end
end
4 changes: 2 additions & 2 deletions lib/google_protos/duration.pb.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Google.Protobuf.Duration do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :seconds, 1, type: :int64
field :nanos, 2, type: :int32
end
end
4 changes: 2 additions & 2 deletions lib/google_protos/empty.pb.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Google.Protobuf.Empty do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
end
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3
end
4 changes: 2 additions & 2 deletions lib/google_protos/field_mask.pb.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Google.Protobuf.FieldMask do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :paths, 1, repeated: true, type: :string
end
end
12 changes: 6 additions & 6 deletions lib/google_protos/struct.pb.ex
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
defmodule Google.Protobuf.NullValue do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, enum: true, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :NULL_VALUE, 0
end

defmodule Google.Protobuf.Struct.FieldsEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, map: true, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :key, 1, type: :string
field :value, 2, type: Google.Protobuf.Value
end

defmodule Google.Protobuf.Struct do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :fields, 1, repeated: true, type: Google.Protobuf.Struct.FieldsEntry, map: true
end

defmodule Google.Protobuf.Value do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

oneof :kind, 0

Expand All @@ -41,7 +41,7 @@ end

defmodule Google.Protobuf.ListValue do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :values, 1, repeated: true, type: Google.Protobuf.Value
end
end
4 changes: 2 additions & 2 deletions lib/google_protos/timestamp.pb.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Google.Protobuf.Timestamp do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :seconds, 1, type: :int64
field :nanos, 2, type: :int32
end
end
20 changes: 10 additions & 10 deletions lib/google_protos/wrappers.pb.ex
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
defmodule Google.Protobuf.DoubleValue do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :double
end

defmodule Google.Protobuf.FloatValue do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :float
end

defmodule Google.Protobuf.Int64Value do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :int64
end

defmodule Google.Protobuf.UInt64Value do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :uint64
end

defmodule Google.Protobuf.Int32Value do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :int32
end

defmodule Google.Protobuf.UInt32Value do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :uint32
end

defmodule Google.Protobuf.BoolValue do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :bool
end

defmodule Google.Protobuf.StringValue do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :string
end

defmodule Google.Protobuf.BytesValue do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.10.0", syntax: :proto3
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3

field :value, 1, type: :bytes
end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleProtos.MixProject do

defp deps do
[
{:protobuf, "~> 0.10"},
{:protobuf, "~> 0.11"},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"makeup_elixir": {:hex, :makeup_elixir, "0.15.2", "dc72dfe17eb240552857465cc00cce390960d9a0c055c4ccd38b70629227e97c", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.1", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "fd23ae48d09b32eff49d4ced2b43c9f086d402ee4fd4fcb2d7fad97fa8823e75"},
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},
"nimble_parsec": {:hex, :nimble_parsec, "1.2.0", "b44d75e2a6542dcb6acf5d71c32c74ca88960421b6874777f79153bbbbd7dccc", [:mix], [], "hexpm", "52b2871a7515a5ac49b00f214e4165a40724cf99798d8e4a65e4fd64ebd002c1"},
"protobuf": {:hex, :protobuf, "0.10.0", "4e8e3cf64c5be203b329f88bb8b916cb8d00fb3a12b2ac1f545463ae963c869f", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "4ae21a386142357aa3d31ccf5f7d290f03f3fa6f209755f6e87fc2c58c147893"},
"protobuf": {:hex, :protobuf, "0.11.0", "58d5531abadea3f71135e97bd214da53b21adcdb5b1420aee63f4be8173ec927", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "30ad9a867a5c5a0616cac9765c4d2c2b7b0030fa81ea6d0c14c2eb5affb6ac52"},
}