diff --git a/generate_google_protos.sh b/generate_google_protos.sh index b537c26..a87a65a 100755 --- a/generate_google_protos.sh +++ b/generate_google_protos.sh @@ -8,10 +8,11 @@ PROTOS=(" protobuf/src/google/protobuf/struct.proto protobuf/src/google/protobuf/timestamp.proto protobuf/src/google/protobuf/wrappers.proto + googleapis/google/type/money.proto ") rm -rf ./lib/google_protos/* for file in $PROTOS; do - protoc -I ./protobuf/src/google/protobuf/ --elixir_out=plugins=grpc:./lib/google_protos $file + protoc -I ./${file%/*}/ --elixir_out=plugins=grpc:./lib/google_protos $file done diff --git a/googleapis b/googleapis new file mode 160000 index 0000000..98c303c --- /dev/null +++ b/googleapis @@ -0,0 +1 @@ +Subproject commit 98c303c996d33de57b06237f54d0dc918864463a diff --git a/lib/google_protos/money.pb.ex b/lib/google_protos/money.pb.ex new file mode 100644 index 0000000..2bff932 --- /dev/null +++ b/lib/google_protos/money.pb.ex @@ -0,0 +1,8 @@ +defmodule Google.Type.Money do + @moduledoc false + use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3 + + field :currency_code, 1, type: :string, json_name: "currencyCode" + field :units, 2, type: :int64 + field :nanos, 3, type: :int32 +end \ No newline at end of file