wikipaddle_api 1.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wikipaddle_api/admin/v1/admin_pb.rb +42 -0
- data/lib/wikipaddle_api/admin/v1/admin_twirp.rb +19 -0
- data/lib/wikipaddle_api/public/v1/mobile_pb.rb +57 -0
- data/lib/wikipaddle_api/public/v1/mobile_twirp.rb +24 -0
- data/lib/wikipaddle_api/version.rb +1 -1
- data/lib/wikipaddle_api.rb +2 -1
- metadata +6 -4
- data/lib/wikipaddle_api/wikipaddle_pb.rb +0 -125
- data/lib/wikipaddle_api/wikipaddle_twirp.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e02c4d3b0f4afe0cf4d732b8e2fe0954e7f96b6b0af762f697992a055d31166
|
4
|
+
data.tar.gz: ba587050c30c5ef743b62b5d711c53b9b0bdcd656ea500111883c92a5b9ba1de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3f1a5e8b639a40e54119cbc6bf2a34375781441373aeb20980550e7b5e6b5af7552866891fa6daefedeaaaac5c44d718f7873b24d21c409ea19fa75e4f5cd95
|
7
|
+
data.tar.gz: 4825f5e5a8ad61ce691ecf3c19835b0a3229f8e714287326ac37f910d97d987ab5ad03c69d8ed892584b08eb5c5f9da1ef7bb5d573e3c81dc6c0dc72506177c3
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: admin/v1/admin.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n\x14\x61\x64min/v1/admin.proto\x12\x17wikipaddle_api.admin.v1\"B\n\x06LatLng\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude\"\xe8\x02\n\x12\x43reateGuideRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x41\n\x0bstartLatLng\x18\x03 \x01(\x0b\x32\x1f.wikipaddle_api.admin.v1.LatLngR\x0bstartLatLng\x12=\n\tendLatLng\x18\x04 \x01(\x0b\x32\x1f.wikipaddle_api.admin.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x05 \x01(\x0cR\x08polyline\x12\x18\n\x07\x63ountry\x18\x06 \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\x07 \x01(\tR\x05state\x12*\n\x10\x64istanceInMeters\x18\x08 \x01(\x05R\x10\x64istanceInMeters\x12 \n\x0b\x61ttribution\x18\t \x01(\tR\x0b\x61ttribution\"%\n\x13\x43reateGuideResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id2q\n\x05\x41\x64min\x12h\n\x0b\x43reateGuide\x12+.wikipaddle_api.admin.v1.CreateGuideRequest\x1a,.wikipaddle_api.admin.v1.CreateGuideResponseB\xe2\x01\n\x1b\x63om.wikipaddle_api.admin.v1B\nAdminProtoP\x01Z=github.com/wikipaddle/protobuf/go-wikipaddle/admin/v1;adminv1\xa2\x02\x03WAX\xaa\x02\x16WikipaddleApi.Admin.V1\xca\x02\x16WikipaddleApi\\Admin\\V1\xe2\x02\"WikipaddleApi\\Admin\\V1\\GPBMetadata\xea\x02\x18WikipaddleApi::Admin::V1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module WikipaddleApi
|
35
|
+
module Admin
|
36
|
+
module V1
|
37
|
+
LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.LatLng").msgclass
|
38
|
+
CreateGuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.CreateGuideRequest").msgclass
|
39
|
+
CreateGuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.CreateGuideResponse").msgclass
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
|
2
|
+
require 'twirp'
|
3
|
+
require_relative 'admin_pb.rb'
|
4
|
+
|
5
|
+
module WikipaddleApi
|
6
|
+
module Admin
|
7
|
+
module V1
|
8
|
+
class AdminService < ::Twirp::Service
|
9
|
+
package 'wikipaddle_api.admin.v1'
|
10
|
+
service 'Admin'
|
11
|
+
rpc :CreateGuide, CreateGuideRequest, CreateGuideResponse, :ruby_method => :create_guide
|
12
|
+
end
|
13
|
+
|
14
|
+
class AdminClient < ::Twirp::Client
|
15
|
+
client_for AdminService
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: public/v1/mobile.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n\x16public/v1/mobile.proto\x12\x18wikipaddle_api.public.v1\"0\n\x1aGetGuidesCollectionRequest\x12\x12\n\x04page\x18\x01 \x01(\x05R\x04page\"\xaa\x01\n\x1bGetGuidesCollectionResponse\x12\x44\n\npagination\x18\x01 \x01(\x0b\x32$.wikipaddle_api.public.v1.PaginationR\npagination\x12\x45\n\x06guides\x18\x02 \x03(\x0b\x32-.wikipaddle_api.public.v1.GuideCollectionItemR\x06guides\",\n\x18GuideCollectionItemPhoto\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\"\x85\x02\n\x13GuideCollectionItem\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n\x07\x63ountry\x18\x03 \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\x04 \x01(\tR\x05state\x12,\n\x11localizedDistance\x18\x05 \x01(\tR\x11localizedDistance\x12\x1e\n\nstarRating\x18\x06 \x01(\tR\nstarRating\x12J\n\x06photos\x18\x07 \x03(\x0b\x32\x32.wikipaddle_api.public.v1.GuideCollectionItemPhotoR\x06photos\"\x17\n\x15GetCurrentUserRequest\"\x8c\x01\n\nPagination\x12 \n\x0b\x63urrentPage\x18\x01 \x01(\x05R\x0b\x63urrentPage\x12\x18\n\x07perPage\x18\x02 \x01(\x05R\x07perPage\x12\"\n\x0ctotalResults\x18\x03 \x01(\x05R\x0ctotalResults\x12\x1e\n\ntotalPages\x18\x04 \x01(\x05R\ntotalPages\"\x1d\n\x0bUserRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\x8a\x01\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\tfirstName\x18\x02 \x01(\tR\tfirstName\x12\x1a\n\x08lastName\x18\x03 \x01(\tR\x08lastName\x12\x1a\n\x08\x66ullName\x18\x04 \x01(\tR\x08\x66ullName\x12\x1c\n\tavatarUrl\x18\x05 \x01(\tR\tavatarUrl\"B\n\x0cUserResponse\x12\x32\n\x04user\x18\x01 \x01(\x0b\x32\x1e.wikipaddle_api.public.v1.UserR\x04user\"\x1e\n\x0cGuideRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"F\n\rGuideResponse\x12\x35\n\x05guide\x18\x01 \x01(\x0b\x32\x1f.wikipaddle_api.public.v1.GuideR\x05guide\"B\n\x06LatLng\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude\"\xc9\x03\n\x05Guide\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x10\n\x03url\x18\x05 \x01(\tR\x03url\x12\x42\n\x0bstartLatLng\x18\x06 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12>\n\tendLatLng\x18\x07 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x08 \x01(\x0cR\x08polyline\x12\x18\n\x07\x63ountry\x18\t \x01(\tR\x07\x63ountry\x12\x14\n\x05state\x18\n \x01(\tR\x05state\x12,\n\x11localizedDistance\x18\x0b \x01(\tR\x11localizedDistance\x12$\n\rcommentsCount\x18\x0c \x01(\x05R\rcommentsCount\x12\"\n\x0cuploadsCount\x18\r \x01(\x05R\x0cuploadsCount\x12\x1e\n\nstarRating\x18\x0e \x01(\tR\nstarRating\"\xd5\x01\n\x0f\x46itnessActivity\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x42\n\x0bstartLatLng\x18\x03 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12>\n\tendLatLng\x18\x04 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x05 \x01(\x0cR\x08polyline\"\xba\x01\n\x0cGuideComment\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x12\"\n\x0cuserFullName\x18\x03 \x01(\tR\x0cuserFullName\x12$\n\ruserAvatarUrl\x18\x04 \x01(\tR\ruserAvatarUrl\x12\x1c\n\tcreatedAt\x18\x05 \x01(\tR\tcreatedAt\x12\x1e\n\nstarRating\x18\x06 \x01(\x05R\nstarRating\"Q\n!GetGuideCommentsCollectionRequest\x12\x18\n\x07guideId\x18\x01 \x01(\tR\x07guideId\x12\x12\n\x04page\x18\x02 \x01(\x05R\x04page\"\xae\x01\n\"GetGuideCommentsCollectionResponse\x12\x44\n\npagination\x18\x01 \x01(\x0b\x32$.wikipaddle_api.public.v1.PaginationR\npagination\x12\x42\n\x08\x63omments\x18\x02 \x03(\x0b\x32&.wikipaddle_api.public.v1.GuideCommentR\x08\x63omments\"i\n\x19\x43reateGuideCommentRequest\x12\x18\n\x07guideId\x18\x01 \x01(\tR\x07guideId\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x12\x1e\n\nstarRating\x18\x03 \x01(\x05R\nstarRating2\xbc\x05\n\x06Mobile\x12X\n\x07GetUser\x12%.wikipaddle_api.public.v1.UserRequest\x1a&.wikipaddle_api.public.v1.UserResponse\x12[\n\x08GetGuide\x12&.wikipaddle_api.public.v1.GuideRequest\x1a\'.wikipaddle_api.public.v1.GuideResponse\x12\x82\x01\n\x13GetGuidesCollection\x12\x34.wikipaddle_api.public.v1.GetGuidesCollectionRequest\x1a\x35.wikipaddle_api.public.v1.GetGuidesCollectionResponse\x12i\n\x0eGetCurrentUser\x12/.wikipaddle_api.public.v1.GetCurrentUserRequest\x1a&.wikipaddle_api.public.v1.UserResponse\x12\x97\x01\n\x1aGetGuideCommentsCollection\x12;.wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest\x1a<.wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse\x12q\n\x12\x43reateGuideComment\x12\x33.wikipaddle_api.public.v1.CreateGuideCommentRequest\x1a&.wikipaddle_api.public.v1.GuideCommentB\xec\x01\n\x1c\x63om.wikipaddle_api.public.v1B\x0bMobileProtoP\x01Z?github.com/wikipaddle/protobuf/go-wikipaddle/public/v1;publicv1\xa2\x02\x03WPX\xaa\x02\x17WikipaddleApi.Public.V1\xca\x02\x18WikipaddleApi\\Public_\\V1\xe2\x02$WikipaddleApi\\Public_\\V1\\GPBMetadata\xea\x02\x19WikipaddleApi::Public::V1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module WikipaddleApi
|
35
|
+
module Public
|
36
|
+
module V1
|
37
|
+
GetGuidesCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionRequest").msgclass
|
38
|
+
GetGuidesCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionResponse").msgclass
|
39
|
+
GuideCollectionItemPhoto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItemPhoto").msgclass
|
40
|
+
GuideCollectionItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItem").msgclass
|
41
|
+
GetCurrentUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetCurrentUserRequest").msgclass
|
42
|
+
Pagination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Pagination").msgclass
|
43
|
+
UserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.UserRequest").msgclass
|
44
|
+
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.User").msgclass
|
45
|
+
UserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.UserResponse").msgclass
|
46
|
+
GuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideRequest").msgclass
|
47
|
+
GuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideResponse").msgclass
|
48
|
+
LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.LatLng").msgclass
|
49
|
+
Guide = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Guide").msgclass
|
50
|
+
FitnessActivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.FitnessActivity").msgclass
|
51
|
+
GuideComment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideComment").msgclass
|
52
|
+
GetGuideCommentsCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest").msgclass
|
53
|
+
GetGuideCommentsCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse").msgclass
|
54
|
+
CreateGuideCommentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.CreateGuideCommentRequest").msgclass
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
|
2
|
+
require 'twirp'
|
3
|
+
require_relative 'mobile_pb.rb'
|
4
|
+
|
5
|
+
module WikipaddleApi
|
6
|
+
module Public
|
7
|
+
module V1
|
8
|
+
class MobileService < ::Twirp::Service
|
9
|
+
package 'wikipaddle_api.public.v1'
|
10
|
+
service 'Mobile'
|
11
|
+
rpc :GetUser, UserRequest, UserResponse, :ruby_method => :get_user
|
12
|
+
rpc :GetGuide, GuideRequest, GuideResponse, :ruby_method => :get_guide
|
13
|
+
rpc :GetGuidesCollection, GetGuidesCollectionRequest, GetGuidesCollectionResponse, :ruby_method => :get_guides_collection
|
14
|
+
rpc :GetCurrentUser, GetCurrentUserRequest, UserResponse, :ruby_method => :get_current_user
|
15
|
+
rpc :GetGuideCommentsCollection, GetGuideCommentsCollectionRequest, GetGuideCommentsCollectionResponse, :ruby_method => :get_guide_comments_collection
|
16
|
+
rpc :CreateGuideComment, CreateGuideCommentRequest, GuideComment, :ruby_method => :create_guide_comment
|
17
|
+
end
|
18
|
+
|
19
|
+
class MobileClient < ::Twirp::Client
|
20
|
+
client_for MobileService
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/wikipaddle_api.rb
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
require "rack"
|
4
4
|
|
5
5
|
require_relative "wikipaddle_api/version"
|
6
|
-
require_relative "wikipaddle_api/
|
6
|
+
require_relative "wikipaddle_api/public/v1/mobile_twirp"
|
7
|
+
require_relative "wikipaddle_api/admin/v1/admin_twirp"
|
7
8
|
|
8
9
|
module WikipaddleApi
|
9
10
|
class Error < StandardError; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wikipaddle_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Drummond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -52,9 +52,11 @@ files:
|
|
52
52
|
- README.md
|
53
53
|
- Rakefile
|
54
54
|
- lib/wikipaddle_api.rb
|
55
|
+
- lib/wikipaddle_api/admin/v1/admin_pb.rb
|
56
|
+
- lib/wikipaddle_api/admin/v1/admin_twirp.rb
|
57
|
+
- lib/wikipaddle_api/public/v1/mobile_pb.rb
|
58
|
+
- lib/wikipaddle_api/public/v1/mobile_twirp.rb
|
55
59
|
- lib/wikipaddle_api/version.rb
|
56
|
-
- lib/wikipaddle_api/wikipaddle_pb.rb
|
57
|
-
- lib/wikipaddle_api/wikipaddle_twirp.rb
|
58
60
|
- sig/wikipaddle_api.rbs
|
59
61
|
- wikipaddle_api.gemspec
|
60
62
|
homepage: https://github.com/wikipaddle/protobuf
|
@@ -1,125 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: wikipaddle.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_file("wikipaddle.proto", :syntax => :proto3) do
|
8
|
-
add_message "wikipaddle_api.v1.GetGuidesCollectionRequest" do
|
9
|
-
optional :page, :int32, 1, json_name: "page"
|
10
|
-
end
|
11
|
-
add_message "wikipaddle_api.v1.GetGuidesCollectionResponse" do
|
12
|
-
optional :pagination, :message, 1, "wikipaddle_api.v1.Pagination", json_name: "pagination"
|
13
|
-
repeated :guides, :message, 2, "wikipaddle_api.v1.GuideCollectionItem", json_name: "guides"
|
14
|
-
end
|
15
|
-
add_message "wikipaddle_api.v1.GuideCollectionItemPhoto" do
|
16
|
-
optional :url, :string, 1, json_name: "url"
|
17
|
-
end
|
18
|
-
add_message "wikipaddle_api.v1.GuideCollectionItem" do
|
19
|
-
optional :id, :string, 1, json_name: "id"
|
20
|
-
optional :title, :string, 2, json_name: "title"
|
21
|
-
optional :country, :string, 3, json_name: "country"
|
22
|
-
optional :state, :string, 4, json_name: "state"
|
23
|
-
optional :localizedDistance, :string, 5, json_name: "localizedDistance"
|
24
|
-
optional :starRating, :string, 6, json_name: "starRating"
|
25
|
-
repeated :photos, :message, 7, "wikipaddle_api.v1.GuideCollectionItemPhoto", json_name: "photos"
|
26
|
-
end
|
27
|
-
add_message "wikipaddle_api.v1.GetCurrentUserRequest" do
|
28
|
-
end
|
29
|
-
add_message "wikipaddle_api.v1.Pagination" do
|
30
|
-
optional :currentPage, :int32, 1, json_name: "currentPage"
|
31
|
-
optional :perPage, :int32, 2, json_name: "perPage"
|
32
|
-
optional :totalResults, :int32, 3, json_name: "totalResults"
|
33
|
-
optional :totalPages, :int32, 4, json_name: "totalPages"
|
34
|
-
end
|
35
|
-
add_message "wikipaddle_api.v1.UserRequest" do
|
36
|
-
optional :id, :string, 1, json_name: "id"
|
37
|
-
end
|
38
|
-
add_message "wikipaddle_api.v1.User" do
|
39
|
-
optional :id, :string, 1, json_name: "id"
|
40
|
-
optional :firstName, :string, 2, json_name: "firstName"
|
41
|
-
optional :lastName, :string, 3, json_name: "lastName"
|
42
|
-
optional :fullName, :string, 4, json_name: "fullName"
|
43
|
-
optional :avatarUrl, :string, 5, json_name: "avatarUrl"
|
44
|
-
end
|
45
|
-
add_message "wikipaddle_api.v1.UserResponse" do
|
46
|
-
optional :user, :message, 1, "wikipaddle_api.v1.User", json_name: "user"
|
47
|
-
end
|
48
|
-
add_message "wikipaddle_api.v1.GuideRequest" do
|
49
|
-
optional :id, :string, 1, json_name: "id"
|
50
|
-
end
|
51
|
-
add_message "wikipaddle_api.v1.GuideResponse" do
|
52
|
-
optional :guide, :message, 1, "wikipaddle_api.v1.Guide", json_name: "guide"
|
53
|
-
end
|
54
|
-
add_message "wikipaddle_api.v1.LatLng" do
|
55
|
-
optional :latitude, :double, 1, json_name: "latitude"
|
56
|
-
optional :longitude, :double, 2, json_name: "longitude"
|
57
|
-
end
|
58
|
-
add_message "wikipaddle_api.v1.Guide" do
|
59
|
-
optional :id, :string, 1, json_name: "id"
|
60
|
-
optional :title, :string, 2, json_name: "title"
|
61
|
-
optional :description, :string, 3, json_name: "description"
|
62
|
-
optional :url, :string, 5, json_name: "url"
|
63
|
-
optional :startLatLng, :message, 6, "wikipaddle_api.v1.LatLng", json_name: "startLatLng"
|
64
|
-
optional :endLatLng, :message, 7, "wikipaddle_api.v1.LatLng", json_name: "endLatLng"
|
65
|
-
optional :polyline, :bytes, 8, json_name: "polyline"
|
66
|
-
optional :country, :string, 9, json_name: "country"
|
67
|
-
optional :state, :string, 10, json_name: "state"
|
68
|
-
optional :localizedDistance, :string, 11, json_name: "localizedDistance"
|
69
|
-
optional :commentsCount, :int32, 12, json_name: "commentsCount"
|
70
|
-
optional :uploadsCount, :int32, 13, json_name: "uploadsCount"
|
71
|
-
optional :starRating, :string, 14, json_name: "starRating"
|
72
|
-
end
|
73
|
-
add_message "wikipaddle_api.v1.FitnessActivity" do
|
74
|
-
optional :id, :string, 1, json_name: "id"
|
75
|
-
optional :name, :string, 2, json_name: "name"
|
76
|
-
optional :startLatLng, :message, 3, "wikipaddle_api.v1.LatLng", json_name: "startLatLng"
|
77
|
-
optional :endLatLng, :message, 4, "wikipaddle_api.v1.LatLng", json_name: "endLatLng"
|
78
|
-
optional :polyline, :bytes, 5, json_name: "polyline"
|
79
|
-
end
|
80
|
-
add_message "wikipaddle_api.v1.GuideComment" do
|
81
|
-
optional :id, :string, 1, json_name: "id"
|
82
|
-
optional :body, :string, 2, json_name: "body"
|
83
|
-
optional :userFullName, :string, 3, json_name: "userFullName"
|
84
|
-
optional :userAvatarUrl, :string, 4, json_name: "userAvatarUrl"
|
85
|
-
optional :createdAt, :string, 5, json_name: "createdAt"
|
86
|
-
optional :starRating, :int32, 6, json_name: "starRating"
|
87
|
-
end
|
88
|
-
add_message "wikipaddle_api.v1.GetGuideCommentsCollectionRequest" do
|
89
|
-
optional :guideId, :string, 1, json_name: "guideId"
|
90
|
-
optional :page, :int32, 2, json_name: "page"
|
91
|
-
end
|
92
|
-
add_message "wikipaddle_api.v1.GetGuideCommentsCollectionResponse" do
|
93
|
-
optional :pagination, :message, 1, "wikipaddle_api.v1.Pagination", json_name: "pagination"
|
94
|
-
repeated :comments, :message, 2, "wikipaddle_api.v1.GuideComment", json_name: "comments"
|
95
|
-
end
|
96
|
-
add_message "wikipaddle_api.v1.CreateGuideCommentRequest" do
|
97
|
-
optional :guideId, :string, 1, json_name: "guideId"
|
98
|
-
optional :body, :string, 2, json_name: "body"
|
99
|
-
optional :starRating, :int32, 3, json_name: "starRating"
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
module WikipaddleApi
|
105
|
-
module V1
|
106
|
-
GetGuidesCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GetGuidesCollectionRequest").msgclass
|
107
|
-
GetGuidesCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GetGuidesCollectionResponse").msgclass
|
108
|
-
GuideCollectionItemPhoto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GuideCollectionItemPhoto").msgclass
|
109
|
-
GuideCollectionItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GuideCollectionItem").msgclass
|
110
|
-
GetCurrentUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GetCurrentUserRequest").msgclass
|
111
|
-
Pagination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.Pagination").msgclass
|
112
|
-
UserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.UserRequest").msgclass
|
113
|
-
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.User").msgclass
|
114
|
-
UserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.UserResponse").msgclass
|
115
|
-
GuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GuideRequest").msgclass
|
116
|
-
GuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GuideResponse").msgclass
|
117
|
-
LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.LatLng").msgclass
|
118
|
-
Guide = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.Guide").msgclass
|
119
|
-
FitnessActivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.FitnessActivity").msgclass
|
120
|
-
GuideComment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GuideComment").msgclass
|
121
|
-
GetGuideCommentsCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GetGuideCommentsCollectionRequest").msgclass
|
122
|
-
GetGuideCommentsCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.GetGuideCommentsCollectionResponse").msgclass
|
123
|
-
CreateGuideCommentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.v1.CreateGuideCommentRequest").msgclass
|
124
|
-
end
|
125
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
|
2
|
-
require 'twirp'
|
3
|
-
require_relative 'wikipaddle_pb.rb'
|
4
|
-
|
5
|
-
module WikipaddleApi
|
6
|
-
module V1
|
7
|
-
class MobileService < ::Twirp::Service
|
8
|
-
package 'wikipaddle_api.v1'
|
9
|
-
service 'Mobile'
|
10
|
-
rpc :GetUser, UserRequest, UserResponse, :ruby_method => :get_user
|
11
|
-
rpc :GetGuide, GuideRequest, GuideResponse, :ruby_method => :get_guide
|
12
|
-
rpc :GetGuidesCollection, GetGuidesCollectionRequest, GetGuidesCollectionResponse, :ruby_method => :get_guides_collection
|
13
|
-
rpc :GetCurrentUser, GetCurrentUserRequest, UserResponse, :ruby_method => :get_current_user
|
14
|
-
rpc :GetGuideCommentsCollection, GetGuideCommentsCollectionRequest, GetGuideCommentsCollectionResponse, :ruby_method => :get_guide_comments_collection
|
15
|
-
rpc :CreateGuideComment, CreateGuideCommentRequest, GuideComment, :ruby_method => :create_guide_comment
|
16
|
-
end
|
17
|
-
|
18
|
-
class MobileClient < ::Twirp::Client
|
19
|
-
client_for MobileService
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|