Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode/*

# The directory Mix will write compiled artifacts to.
/_build/

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image=eigr/massa-proxy:0.1.36
image=eigr/massa-proxy:1.0.0-PREVIEW
port=8080

.PHONY: all clean
Expand Down
5 changes: 0 additions & 5 deletions apps/cloudstate_protocol/lib/cloudstate/entity_key.pb.ex
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
defmodule Cloudstate.PbExtension do
@moduledoc false
use Protobuf, syntax: :proto3
extend(Google.Protobuf.FieldOptions, :entity_key, 1080, optional: true, type: :bool)
end
28 changes: 8 additions & 20 deletions apps/cloudstate_protocol/lib/cloudstate/eventing.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ defmodule Cloudstate.Eventing do
in: Cloudstate.EventSource.t() | nil,
out: Cloudstate.EventDestination.t() | nil
}

defstruct [:in, :out]

def descriptor do
Expand All @@ -20,8 +19,8 @@ defmodule Cloudstate.Eventing do
)
end

field(:in, 1, type: Cloudstate.EventSource)
field(:out, 2, type: Cloudstate.EventDestination)
field :in, 1, type: Cloudstate.EventSource
field :out, 2, type: Cloudstate.EventDestination
end

defmodule Cloudstate.EventSource do
Expand All @@ -32,7 +31,6 @@ defmodule Cloudstate.EventSource do
source: {atom, any},
consumer_group: String.t()
}

defstruct [:source, :consumer_group]

def descriptor do
Expand All @@ -47,11 +45,10 @@ defmodule Cloudstate.EventSource do
)
end

oneof(:source, 0)

field(:consumer_group, 1, type: :string)
field(:topic, 2, type: :string, oneof: 0)
field(:event_log, 3, type: :string, oneof: 0)
oneof :source, 0
field :consumer_group, 1, type: :string
field :topic, 2, type: :string, oneof: 0
field :event_log, 3, type: :string, oneof: 0
end

defmodule Cloudstate.EventDestination do
Expand All @@ -61,7 +58,6 @@ defmodule Cloudstate.EventDestination do
@type t :: %__MODULE__{
destination: {atom, any}
}

defstruct [:destination]

def descriptor do
Expand All @@ -73,14 +69,6 @@ defmodule Cloudstate.EventDestination do
)
end

oneof(:destination, 0)

field(:topic, 1, type: :string, oneof: 0)
end

defmodule Cloudstate.PbExtension do
@moduledoc false
use Protobuf, syntax: :proto3

extend(Google.Protobuf.MethodOptions, :eventing, 1081, optional: true, type: Cloudstate.Eventing)
oneof :destination, 0
field :topic, 1, type: :string, oneof: 0
end
9 changes: 0 additions & 9 deletions apps/cloudstate_protocol/lib/google/api/annotations.pb.ex
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
defmodule Google.Api.PbExtension do
@moduledoc false
use Protobuf, syntax: :proto3

extend(Google.Protobuf.MethodOptions, :http, 72_295_728,
optional: true,
type: Google.Api.HttpRule
)
end
45 changes: 19 additions & 26 deletions apps/cloudstate_protocol/lib/google/api/auth.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ defmodule Google.Api.Authentication do
rules: [Google.Api.AuthenticationRule.t()],
providers: [Google.Api.AuthProvider.t()]
}

defstruct [:rules, :providers]

def descriptor do
Expand All @@ -22,8 +21,8 @@ defmodule Google.Api.Authentication do
)
end

field(:rules, 3, repeated: true, type: Google.Api.AuthenticationRule)
field(:providers, 4, repeated: true, type: Google.Api.AuthProvider)
field :rules, 3, repeated: true, type: Google.Api.AuthenticationRule
field :providers, 4, repeated: true, type: Google.Api.AuthProvider
end

defmodule Google.Api.AuthenticationRule do
Expand All @@ -36,7 +35,6 @@ defmodule Google.Api.AuthenticationRule do
allow_without_credential: boolean,
requirements: [Google.Api.AuthRequirement.t()]
}

defstruct [:selector, :oauth, :allow_without_credential, :requirements]

def descriptor do
Expand All @@ -57,10 +55,10 @@ defmodule Google.Api.AuthenticationRule do
)
end

field(:selector, 1, type: :string)
field(:oauth, 2, type: Google.Api.OAuthRequirements)
field(:allow_without_credential, 5, type: :bool)
field(:requirements, 7, repeated: true, type: Google.Api.AuthRequirement)
field :selector, 1, type: :string
field :oauth, 2, type: Google.Api.OAuthRequirements
field :allow_without_credential, 5, type: :bool
field :requirements, 7, repeated: true, type: Google.Api.AuthRequirement
end

defmodule Google.Api.JwtLocation do
Expand All @@ -71,7 +69,6 @@ defmodule Google.Api.JwtLocation do
in: {atom, any},
value_prefix: String.t()
}

defstruct [:in, :value_prefix]

def descriptor do
Expand All @@ -86,11 +83,10 @@ defmodule Google.Api.JwtLocation do
)
end

oneof(:in, 0)

field(:header, 1, type: :string, oneof: 0)
field(:query, 2, type: :string, oneof: 0)
field(:value_prefix, 3, type: :string)
oneof :in, 0
field :header, 1, type: :string, oneof: 0
field :query, 2, type: :string, oneof: 0
field :value_prefix, 3, type: :string
end

defmodule Google.Api.AuthProvider do
Expand All @@ -105,7 +101,6 @@ defmodule Google.Api.AuthProvider do
authorization_url: String.t(),
jwt_locations: [Google.Api.JwtLocation.t()]
}

defstruct [:id, :issuer, :jwks_uri, :audiences, :authorization_url, :jwt_locations]

def descriptor do
Expand All @@ -125,12 +120,12 @@ defmodule Google.Api.AuthProvider do
)
end

field(:id, 1, type: :string)
field(:issuer, 2, type: :string)
field(:jwks_uri, 3, type: :string)
field(:audiences, 4, type: :string)
field(:authorization_url, 5, type: :string)
field(:jwt_locations, 6, repeated: true, type: Google.Api.JwtLocation)
field :id, 1, type: :string
field :issuer, 2, type: :string
field :jwks_uri, 3, type: :string
field :audiences, 4, type: :string
field :authorization_url, 5, type: :string
field :jwt_locations, 6, repeated: true, type: Google.Api.JwtLocation
end

defmodule Google.Api.OAuthRequirements do
Expand All @@ -140,7 +135,6 @@ defmodule Google.Api.OAuthRequirements do
@type t :: %__MODULE__{
canonical_scopes: String.t()
}

defstruct [:canonical_scopes]

def descriptor do
Expand All @@ -153,7 +147,7 @@ defmodule Google.Api.OAuthRequirements do
)
end

field(:canonical_scopes, 1, type: :string)
field :canonical_scopes, 1, type: :string
end

defmodule Google.Api.AuthRequirement do
Expand All @@ -164,7 +158,6 @@ defmodule Google.Api.AuthRequirement do
provider_id: String.t(),
audiences: String.t()
}

defstruct [:provider_id, :audiences]

def descriptor do
Expand All @@ -177,6 +170,6 @@ defmodule Google.Api.AuthRequirement do
)
end

field(:provider_id, 1, type: :string)
field(:audiences, 2, type: :string)
field :provider_id, 1, type: :string
field :audiences, 2, type: :string
end
34 changes: 15 additions & 19 deletions apps/cloudstate_protocol/lib/google/api/http.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ defmodule Google.Api.Http do
rules: [Google.Api.HttpRule.t()],
fully_decode_reserved_expansion: boolean
}

defstruct [:rules, :fully_decode_reserved_expansion]

def descriptor do
Expand All @@ -22,8 +21,8 @@ defmodule Google.Api.Http do
)
end

field(:rules, 1, repeated: true, type: Google.Api.HttpRule)
field(:fully_decode_reserved_expansion, 2, type: :bool)
field :rules, 1, repeated: true, type: Google.Api.HttpRule
field :fully_decode_reserved_expansion, 2, type: :bool
end

defmodule Google.Api.HttpRule do
Expand All @@ -37,7 +36,6 @@ defmodule Google.Api.HttpRule do
response_body: String.t(),
additional_bindings: [Google.Api.HttpRule.t()]
}

defstruct [:pattern, :selector, :body, :response_body, :additional_bindings]

def descriptor do
Expand All @@ -63,18 +61,17 @@ defmodule Google.Api.HttpRule do
)
end

oneof(:pattern, 0)

field(:selector, 1, type: :string)
field(:get, 2, type: :string, oneof: 0)
field(:put, 3, type: :string, oneof: 0)
field(:post, 4, type: :string, oneof: 0)
field(:delete, 5, type: :string, oneof: 0)
field(:patch, 6, type: :string, oneof: 0)
field(:custom, 8, type: Google.Api.CustomHttpPattern, oneof: 0)
field(:body, 7, type: :string)
field(:response_body, 12, type: :string)
field(:additional_bindings, 11, repeated: true, type: Google.Api.HttpRule)
oneof :pattern, 0
field :selector, 1, type: :string
field :get, 2, type: :string, oneof: 0
field :put, 3, type: :string, oneof: 0
field :post, 4, type: :string, oneof: 0
field :delete, 5, type: :string, oneof: 0
field :patch, 6, type: :string, oneof: 0
field :custom, 8, type: Google.Api.CustomHttpPattern, oneof: 0
field :body, 7, type: :string
field :response_body, 12, type: :string
field :additional_bindings, 11, repeated: true, type: Google.Api.HttpRule
end

defmodule Google.Api.CustomHttpPattern do
Expand All @@ -85,7 +82,6 @@ defmodule Google.Api.CustomHttpPattern do
kind: String.t(),
path: String.t()
}

defstruct [:kind, :path]

def descriptor do
Expand All @@ -97,6 +93,6 @@ defmodule Google.Api.CustomHttpPattern do
)
end

field(:kind, 1, type: :string)
field(:path, 2, type: :string)
field :kind, 1, type: :string
field :path, 2, type: :string
end
7 changes: 3 additions & 4 deletions apps/cloudstate_protocol/lib/google/api/httpbody.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ defmodule Google.Api.HttpBody do
data: binary,
extensions: [Google.Protobuf.Any.t()]
}

defstruct [:content_type, :data, :extensions]

def descriptor do
Expand All @@ -22,7 +21,7 @@ defmodule Google.Api.HttpBody do
)
end

field(:content_type, 1, type: :string)
field(:data, 2, type: :bytes)
field(:extensions, 3, repeated: true, type: Google.Protobuf.Any)
field :content_type, 1, type: :string
field :data, 2, type: :bytes
field :extensions, 3, repeated: true, type: Google.Protobuf.Any
end
3 changes: 1 addition & 2 deletions apps/cloudstate_protocol/lib/google/api/source_info.pb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ defmodule Google.Api.SourceInfo do
@type t :: %__MODULE__{
source_files: [Google.Protobuf.Any.t()]
}

defstruct [:source_files]

def descriptor do
Expand All @@ -18,5 +17,5 @@ defmodule Google.Api.SourceInfo do
)
end

field(:source_files, 1, repeated: true, type: Google.Protobuf.Any)
field :source_files, 1, repeated: true, type: Google.Protobuf.Any
end
Loading