Skip to content

Commit

Permalink
Format protofiles
Browse files Browse the repository at this point in the history
  • Loading branch information
szajbus committed Aug 2, 2023
1 parent 65b07f9 commit efdfe2c
Show file tree
Hide file tree
Showing 5 changed files with 364 additions and 351 deletions.
28 changes: 14 additions & 14 deletions lib/etcd_ex/protos/auth.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,45 @@ defmodule Authpb.Permission.Type do

use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :READ, 0
field :WRITE, 1
field :READWRITE, 2
field(:READ, 0)
field(:WRITE, 1)
field(:READWRITE, 2)
end

defmodule Authpb.UserAddOptions do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :no_password, 1, type: :bool, json_name: "noPassword"
field(:no_password, 1, type: :bool, json_name: "noPassword")
end

defmodule Authpb.User do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :name, 1, type: :bytes
field :password, 2, type: :bytes
field :roles, 3, repeated: true, type: :string
field :options, 4, type: Authpb.UserAddOptions
field(:name, 1, type: :bytes)
field(:password, 2, type: :bytes)
field(:roles, 3, repeated: true, type: :string)
field(:options, 4, type: Authpb.UserAddOptions)
end

defmodule Authpb.Permission do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :permType, 1, type: Authpb.Permission.Type, enum: true
field :key, 2, type: :bytes
field :range_end, 3, type: :bytes, json_name: "rangeEnd"
field(:permType, 1, type: Authpb.Permission.Type, enum: true)
field(:key, 2, type: :bytes)
field(:range_end, 3, type: :bytes, json_name: "rangeEnd")
end

defmodule Authpb.Role do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :name, 1, type: :bytes
field :keyPermission, 2, repeated: true, type: Authpb.Permission
end
field(:name, 1, type: :bytes)
field(:keyPermission, 2, repeated: true, type: Authpb.Permission)
end
135 changes: 70 additions & 65 deletions lib/etcd_ex/protos/gogoproto/pb_extension.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,141 +2,146 @@ defmodule Gogoproto.PbExtension do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0"

extend Google.Protobuf.EnumOptions, :goproto_enum_prefix, 62001, optional: true, type: :bool
extend(Google.Protobuf.EnumOptions, :goproto_enum_prefix, 62001, optional: true, type: :bool)

extend Google.Protobuf.EnumOptions, :goproto_enum_stringer, 62021, optional: true, type: :bool
extend(Google.Protobuf.EnumOptions, :goproto_enum_stringer, 62021, optional: true, type: :bool)

extend Google.Protobuf.EnumOptions, :enum_stringer, 62022, optional: true, type: :bool
extend(Google.Protobuf.EnumOptions, :enum_stringer, 62022, optional: true, type: :bool)

extend Google.Protobuf.EnumOptions, :enum_customname, 62023, optional: true, type: :string
extend(Google.Protobuf.EnumOptions, :enum_customname, 62023, optional: true, type: :string)

extend Google.Protobuf.EnumValueOptions, :enumvalue_customname, 66001,
extend(Google.Protobuf.EnumValueOptions, :enumvalue_customname, 66001,
optional: true,
type: :string
)

extend Google.Protobuf.FileOptions, :goproto_getters_all, 63001, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :goproto_getters_all, 63001, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :goproto_enum_prefix_all, 63002, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :goproto_enum_prefix_all, 63002, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :goproto_stringer_all, 63003, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :goproto_stringer_all, 63003, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :verbose_equal_all, 63004, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :verbose_equal_all, 63004, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :face_all, 63005, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :face_all, 63005, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :gostring_all, 63006, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :gostring_all, 63006, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :populate_all, 63007, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :populate_all, 63007, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :stringer_all, 63008, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :stringer_all, 63008, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :onlyone_all, 63009, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :onlyone_all, 63009, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :equal_all, 63013, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :equal_all, 63013, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :description_all, 63014, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :description_all, 63014, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :testgen_all, 63015, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :testgen_all, 63015, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :benchgen_all, 63016, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :benchgen_all, 63016, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :marshaler_all, 63017, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :marshaler_all, 63017, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :unmarshaler_all, 63018, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :unmarshaler_all, 63018, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :stable_marshaler_all, 63019, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :stable_marshaler_all, 63019, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :sizer_all, 63020, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :sizer_all, 63020, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :goproto_enum_stringer_all, 63021,
extend(Google.Protobuf.FileOptions, :goproto_enum_stringer_all, 63021,
optional: true,
type: :bool
)

extend Google.Protobuf.FileOptions, :enum_stringer_all, 63022, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :enum_stringer_all, 63022, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :unsafe_marshaler_all, 63023, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :unsafe_marshaler_all, 63023, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :unsafe_unmarshaler_all, 63024, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :unsafe_unmarshaler_all, 63024, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :goproto_extensions_map_all, 63025,
extend(Google.Protobuf.FileOptions, :goproto_extensions_map_all, 63025,
optional: true,
type: :bool
)

extend Google.Protobuf.FileOptions, :goproto_unrecognized_all, 63026,
extend(Google.Protobuf.FileOptions, :goproto_unrecognized_all, 63026,
optional: true,
type: :bool
)

extend Google.Protobuf.FileOptions, :gogoproto_import, 63027, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :gogoproto_import, 63027, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :protosizer_all, 63028, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :protosizer_all, 63028, optional: true, type: :bool)

extend Google.Protobuf.FileOptions, :compare_all, 63029, optional: true, type: :bool
extend(Google.Protobuf.FileOptions, :compare_all, 63029, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :goproto_getters, 64001, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :goproto_getters, 64001, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :goproto_stringer, 64003, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :goproto_stringer, 64003, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :verbose_equal, 64004, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :verbose_equal, 64004, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :face, 64005, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :face, 64005, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :gostring, 64006, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :gostring, 64006, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :populate, 64007, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :populate, 64007, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :stringer, 67008, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :stringer, 67008, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :onlyone, 64009, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :onlyone, 64009, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :equal, 64013, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :equal, 64013, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :description, 64014, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :description, 64014, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :testgen, 64015, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :testgen, 64015, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :benchgen, 64016, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :benchgen, 64016, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :marshaler, 64017, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :marshaler, 64017, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :unmarshaler, 64018, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :unmarshaler, 64018, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :stable_marshaler, 64019, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :stable_marshaler, 64019, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :sizer, 64020, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :sizer, 64020, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :unsafe_marshaler, 64023, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :unsafe_marshaler, 64023, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :unsafe_unmarshaler, 64024, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :unsafe_unmarshaler, 64024, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :goproto_extensions_map, 64025,
extend(Google.Protobuf.MessageOptions, :goproto_extensions_map, 64025,
optional: true,
type: :bool
)

extend Google.Protobuf.MessageOptions, :goproto_unrecognized, 64026, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :goproto_unrecognized, 64026, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :protosizer, 64028, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :protosizer, 64028, optional: true, type: :bool)

extend Google.Protobuf.MessageOptions, :compare, 64029, optional: true, type: :bool
extend(Google.Protobuf.MessageOptions, :compare, 64029, optional: true, type: :bool)

extend Google.Protobuf.FieldOptions, :nullable, 65001, optional: true, type: :bool
extend(Google.Protobuf.FieldOptions, :nullable, 65001, optional: true, type: :bool)

extend Google.Protobuf.FieldOptions, :embed, 65002, optional: true, type: :bool
extend(Google.Protobuf.FieldOptions, :embed, 65002, optional: true, type: :bool)

extend Google.Protobuf.FieldOptions, :customtype, 65003, optional: true, type: :string
extend(Google.Protobuf.FieldOptions, :customtype, 65003, optional: true, type: :string)

extend Google.Protobuf.FieldOptions, :customname, 65004, optional: true, type: :string
extend(Google.Protobuf.FieldOptions, :customname, 65004, optional: true, type: :string)

extend Google.Protobuf.FieldOptions, :jsontag, 65005, optional: true, type: :string
extend(Google.Protobuf.FieldOptions, :jsontag, 65005, optional: true, type: :string)

extend Google.Protobuf.FieldOptions, :moretags, 65006, optional: true, type: :string
extend(Google.Protobuf.FieldOptions, :moretags, 65006, optional: true, type: :string)

extend Google.Protobuf.FieldOptions, :casttype, 65007, optional: true, type: :string
extend(Google.Protobuf.FieldOptions, :casttype, 65007, optional: true, type: :string)

extend Google.Protobuf.FieldOptions, :castkey, 65008, optional: true, type: :string
extend(Google.Protobuf.FieldOptions, :castkey, 65008, optional: true, type: :string)

extend Google.Protobuf.FieldOptions, :castvalue, 65009, optional: true, type: :string
extend(Google.Protobuf.FieldOptions, :castvalue, 65009, optional: true, type: :string)

extend Google.Protobuf.FieldOptions, :stdtime, 65010, optional: true, type: :bool
extend(Google.Protobuf.FieldOptions, :stdtime, 65010, optional: true, type: :bool)

extend Google.Protobuf.FieldOptions, :stdduration, 65011, optional: true, type: :bool
end
extend(Google.Protobuf.FieldOptions, :stdduration, 65011, optional: true, type: :bool)
end
24 changes: 12 additions & 12 deletions lib/etcd_ex/protos/kv.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@ defmodule Mvccpb.Event.EventType do

use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :PUT, 0
field :DELETE, 1
field(:PUT, 0)
field(:DELETE, 1)
end

defmodule Mvccpb.KeyValue do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :key, 1, type: :bytes
field :create_revision, 2, type: :int64, json_name: "createRevision"
field :mod_revision, 3, type: :int64, json_name: "modRevision"
field :version, 4, type: :int64
field :value, 5, type: :bytes
field :lease, 6, type: :int64
field(:key, 1, type: :bytes)
field(:create_revision, 2, type: :int64, json_name: "createRevision")
field(:mod_revision, 3, type: :int64, json_name: "modRevision")
field(:version, 4, type: :int64)
field(:value, 5, type: :bytes)
field(:lease, 6, type: :int64)
end

defmodule Mvccpb.Event do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3

field :type, 1, type: Mvccpb.Event.EventType, enum: true
field :kv, 2, type: Mvccpb.KeyValue
field :prev_kv, 3, type: Mvccpb.KeyValue, json_name: "prevKv"
end
field(:type, 1, type: Mvccpb.Event.EventType, enum: true)
field(:kv, 2, type: Mvccpb.KeyValue)
field(:prev_kv, 3, type: Mvccpb.KeyValue, json_name: "prevKv")
end
Loading

0 comments on commit efdfe2c

Please sign in to comment.