Skip to content

Commit

Permalink
added protobuf types
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Jan 3, 2025
1 parent 59910ef commit c704aa1
Show file tree
Hide file tree
Showing 7 changed files with 159 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spawn_statestores/statestores/lib/google/protobuf/any.pb.ex
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
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
5 changes: 5 additions & 0 deletions spawn_statestores/statestores/lib/google/protobuf/empty.pb.ex
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
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
52 changes: 52 additions & 0 deletions spawn_statestores/statestores/lib/google/protobuf/struct.pb.ex
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
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
71 changes: 71 additions & 0 deletions spawn_statestores/statestores/lib/google/protobuf/wrappers.pb.ex
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

0 comments on commit c704aa1

Please sign in to comment.