-
Notifications
You must be signed in to change notification settings - Fork 146
Generate Google modules #353
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
27da407
feat: generate google well known types
btkostner b122c39
update generated files to 0.13.0 version
btkostner 9df90b4
update
btkostner 5ec8719
Update README.md
btkostner 841f57d
revert version update
btkostner 755a1f2
trigger ci
v0idpwn 602946c
Merge main
v0idpwn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
defmodule Elixirpb.FileOptions do | ||
@moduledoc false | ||
|
||
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0" | ||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto2 | ||
|
||
field :module_prefix, 1, optional: true, type: :string | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
defmodule Google.Protobuf.Any do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :type_url, 1, type: :string, json_name: "typeUrl" | ||
field :value, 2, type: :bytes | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
defmodule Google.Protobuf.Duration do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :seconds, 1, type: :int64 | ||
field :nanos, 2, type: :int32 | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
defmodule Google.Protobuf.Empty do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defmodule Google.Protobuf.FieldMask do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :paths, 1, repeated: true, type: :string | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
defmodule Google.Protobuf.NullValue do | ||
@moduledoc false | ||
|
||
use Protobuf, enum: true, protoc_gen_elixir_version: "0.13.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.13.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.13.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.13.0", syntax: :proto3 | ||
|
||
oneof :kind, 0 | ||
|
||
field :null_value, 1, | ||
type: Google.Protobuf.NullValue, | ||
json_name: "nullValue", | ||
enum: true, | ||
oneof: 0 | ||
|
||
field :number_value, 2, type: :double, json_name: "numberValue", oneof: 0 | ||
field :string_value, 3, type: :string, json_name: "stringValue", oneof: 0 | ||
field :bool_value, 4, type: :bool, json_name: "boolValue", oneof: 0 | ||
field :struct_value, 5, type: Google.Protobuf.Struct, json_name: "structValue", oneof: 0 | ||
field :list_value, 6, type: Google.Protobuf.ListValue, json_name: "listValue", oneof: 0 | ||
end | ||
|
||
defmodule Google.Protobuf.ListValue do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :values, 1, repeated: true, type: Google.Protobuf.Value | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
defmodule Google.Protobuf.Timestamp do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :seconds, 1, type: :int64 | ||
field :nanos, 2, type: :int32 | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
defmodule Google.Protobuf.DoubleValue do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :double | ||
end | ||
|
||
defmodule Google.Protobuf.FloatValue do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :float | ||
end | ||
|
||
defmodule Google.Protobuf.Int64Value do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :int64 | ||
end | ||
|
||
defmodule Google.Protobuf.UInt64Value do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :uint64 | ||
end | ||
|
||
defmodule Google.Protobuf.Int32Value do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :int32 | ||
end | ||
|
||
defmodule Google.Protobuf.UInt32Value do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :uint32 | ||
end | ||
|
||
defmodule Google.Protobuf.BoolValue do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :bool | ||
end | ||
|
||
defmodule Google.Protobuf.StringValue do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :string | ||
end | ||
|
||
defmodule Google.Protobuf.BytesValue do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3 | ||
|
||
field :value, 1, type: :bytes | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's actually true 🤔 If I pull
0.13.0
now, it won't contain these new files. Perhaps you meant the next patch/minor version?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, fixed it on #381. Thank you for pointing out!