jitera_proto 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0cdd106df02eea6fb11ed6f799258dff379026882d4821d516c0a22787a9b230
4
+ data.tar.gz: 378b7f4e60a6d9a948ba97ba32b30721f089cb0cecb5cb18848b1ae98dec4e09
5
+ SHA512:
6
+ metadata.gz: b3e19020c5aad4ca4fb2829bbf66ff50b38bbd40b9385dd6cb47ae1dd2000eb4912c612f713ec67fba49438f6bb5e906b2307d5a6ba07a7c76b8df2882135e9e
7
+ data.tar.gz: 3dee93c81c74fe176490cce44629291466d4a1874f02cbe8647f9754b79679eea3e4d6d5d4e790facee5666a0d3a6c260b5f7e2253e6af7a370ccf084cdd0ca5
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in proto.gemspec
6
+ gemspec
7
+
8
+ gem 'grpc', "~> 1.50.0"
9
+ gem 'grpc-tools', "~> 1.50.0"
10
+ gem 'google-protobuf', "~> 3.21.12"
11
+ gem "rake", "~> 13.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,31 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jitera_proto (0.0.2)
5
+ google-protobuf (~> 3.21.12)
6
+ grpc (~> 1.50.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ google-protobuf (3.21.12)
12
+ googleapis-common-protos-types (1.5.0)
13
+ google-protobuf (~> 3.14)
14
+ grpc (1.50.0)
15
+ google-protobuf (~> 3.21)
16
+ googleapis-common-protos-types (~> 1.0)
17
+ grpc-tools (1.50.0)
18
+ rake (13.0.6)
19
+
20
+ PLATFORMS
21
+ arm64-darwin-21
22
+
23
+ DEPENDENCIES
24
+ google-protobuf (~> 3.21.12)
25
+ grpc (~> 1.50.0)
26
+ grpc-tools (~> 1.50.0)
27
+ jitera_proto!
28
+ rake (~> 13.0)
29
+
30
+ BUNDLED WITH
31
+ 2.3.16
data/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # Proto
2
+
3
+ ## Installation
4
+
5
+ Install the gem and add to the application's Gemfile by executing:
6
+
7
+ $ bundle add jitera_proto
8
+
9
+ If bundler is not being used to manage dependencies, install the gem by executing:
10
+
11
+ $ gem install jitera_proto
12
+
13
+ ## Usage
14
+
15
+ ### Generate protobuf
16
+
17
+ ```
18
+ $ grpc_tools_ruby_protoc -I ./lib/payloads --ruby_out=./lib/payloads --grpc_out=./lib/payloads ./lib/payloads/**/*.proto --proto_path=lib/payloads
19
+ ```
20
+
21
+ ## Contributing
22
+
23
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/proto.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+ require_relative 'payloads/v1/backend_pb'
3
+ require_relative 'payloads/v1/frontend_pb'
4
+ require_relative 'payloads/v1/service_pb'
5
+ require_relative 'payloads/v1/service_services_pb'
6
+ require_relative 'payloads/report_pb'
7
+
8
+ module JiteraProto
9
+ end
@@ -0,0 +1,34 @@
1
+ syntax = "proto3";
2
+ package schema.v1;
3
+
4
+ message Report {
5
+ string project_name = 1;
6
+ int32 project_id = 2;
7
+
8
+ oneof state {
9
+ Progress progress = 3;
10
+ Complete complete = 4;
11
+ }
12
+
13
+ oneof report_type {
14
+ ProjectExport project_export = 5;
15
+ ProjectPreview project_preview = 6;
16
+ }
17
+
18
+ message Progress {
19
+ float percentage = 1;
20
+ string message = 2;
21
+ }
22
+
23
+ message Complete {
24
+ string path = 1;
25
+ }
26
+
27
+ message ProjectExport {
28
+ int32 id = 1;
29
+ }
30
+
31
+ message ProjectPreview {
32
+ int32 id = 1;
33
+ }
34
+ }
@@ -0,0 +1,44 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: report.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("report.proto", :syntax => :proto3) do
8
+ add_message "schema.v1.Report" do
9
+ optional :project_name, :string, 1
10
+ optional :project_id, :int32, 2
11
+ oneof :state do
12
+ optional :progress, :message, 3, "schema.v1.Report.Progress"
13
+ optional :complete, :message, 4, "schema.v1.Report.Complete"
14
+ end
15
+ oneof :report_type do
16
+ optional :project_export, :message, 5, "schema.v1.Report.ProjectExport"
17
+ optional :project_preview, :message, 6, "schema.v1.Report.ProjectPreview"
18
+ end
19
+ end
20
+ add_message "schema.v1.Report.Progress" do
21
+ optional :percentage, :float, 1
22
+ optional :message, :string, 2
23
+ end
24
+ add_message "schema.v1.Report.Complete" do
25
+ optional :path, :string, 1
26
+ end
27
+ add_message "schema.v1.Report.ProjectExport" do
28
+ optional :id, :int32, 1
29
+ end
30
+ add_message "schema.v1.Report.ProjectPreview" do
31
+ optional :id, :int32, 1
32
+ end
33
+ end
34
+ end
35
+
36
+ module Schema
37
+ module V1
38
+ Report = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Report").msgclass
39
+ Report::Progress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Report.Progress").msgclass
40
+ Report::Complete = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Report.Complete").msgclass
41
+ Report::ProjectExport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Report.ProjectExport").msgclass
42
+ Report::ProjectPreview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Report.ProjectPreview").msgclass
43
+ end
44
+ end