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

Update protobuf #10

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ workflows:
ci:
jobs:
- elixir-orb/test:
context: Hex
executor: elixir-orb/elixir
- hold-for-dev-publish:
type: approval
Expand Down
1 change: 0 additions & 1 deletion interop/lib/grpc_testing/empty.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ defmodule Grpc.Testing.Empty do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{}
defstruct []
end
7 changes: 0 additions & 7 deletions lib/google/protobuf/any.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ defmodule Google.Protobuf.Any do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
type_url: String.t(),
value: binary
}

defstruct [:type_url, :value]

field :type_url, 1, type: :string
field :value, 2, type: :bytes
end
7 changes: 0 additions & 7 deletions lib/google/protobuf/duration.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ defmodule Google.Protobuf.Duration do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
seconds: integer,
nanos: integer
}

defstruct [:seconds, :nanos]

field :seconds, 1, type: :int64
field :nanos, 2, type: :int32
end
26 changes: 0 additions & 26 deletions lib/google/protobuf/struct.pb.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
defmodule Google.Protobuf.NullValue do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :NULL_VALUE

field :NULL_VALUE, 0
end
Expand All @@ -10,13 +9,6 @@ defmodule Google.Protobuf.Struct.FieldsEntry do
@moduledoc false
use Protobuf, map: true, syntax: :proto3

@type t :: %__MODULE__{
key: String.t(),
value: Google.Protobuf.Value.t() | nil
}

defstruct [:key, :value]

field :key, 1, type: :string
field :value, 2, type: Google.Protobuf.Value
end
Expand All @@ -25,25 +17,13 @@ defmodule Google.Protobuf.Struct do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
fields: %{String.t() => Google.Protobuf.Value.t() | nil}
}

defstruct [:fields]

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

defmodule Google.Protobuf.Value do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
kind: {atom, any}
}

defstruct [:kind]

oneof :kind, 0
field :null_value, 1, type: Google.Protobuf.NullValue, enum: true, oneof: 0
field :number_value, 2, type: :double, oneof: 0
Expand All @@ -57,11 +37,5 @@ defmodule Google.Protobuf.ListValue do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
values: [Google.Protobuf.Value.t()]
}

defstruct [:values]

field :values, 1, repeated: true, type: Google.Protobuf.Value
end
7 changes: 0 additions & 7 deletions lib/google/protobuf/timestamp.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ defmodule Google.Protobuf.Timestamp do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
seconds: integer,
nanos: integer
}

defstruct [:seconds, :nanos]

field :seconds, 1, type: :int64
field :nanos, 2, type: :int32
end
54 changes: 0 additions & 54 deletions lib/google/protobuf/wrappers.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,115 +2,61 @@ defmodule Google.Protobuf.DoubleValue do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: float | :infinity | :negative_infinity | :nan
}

defstruct [:value]

field :value, 1, type: :double
end

defmodule Google.Protobuf.FloatValue do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: float | :infinity | :negative_infinity | :nan
}

defstruct [:value]

field :value, 1, type: :float
end

defmodule Google.Protobuf.Int64Value do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: integer
}

defstruct [:value]

field :value, 1, type: :int64
end

defmodule Google.Protobuf.UInt64Value do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: non_neg_integer
}

defstruct [:value]

field :value, 1, type: :uint64
end

defmodule Google.Protobuf.Int32Value do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: integer
}

defstruct [:value]

field :value, 1, type: :int32
end

defmodule Google.Protobuf.UInt32Value do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: non_neg_integer
}

defstruct [:value]

field :value, 1, type: :uint32
end

defmodule Google.Protobuf.BoolValue do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: boolean
}

defstruct [:value]

field :value, 1, type: :bool
end

defmodule Google.Protobuf.StringValue do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: String.t()
}

defstruct [:value]

field :value, 1, type: :string
end

defmodule Google.Protobuf.BytesValue do
@moduledoc false
use Protobuf, syntax: :proto3

@type t :: %__MODULE__{
value: binary
}

defstruct [:value]

field :value, 1, type: :bytes
end
Loading