wikipaddle_api 1.1.1 → 1.1.3
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/Gemfile.lock +73 -0
- data/lib/wikipaddle_api/admin/v1/admin_service_pb.rb +47 -0
- data/lib/wikipaddle_api/admin/v1/admin_service_twirp.rb +21 -0
- data/lib/wikipaddle_api/public/v1/mobile_service_pb.rb +61 -0
- data/lib/wikipaddle_api/public/v1/{mobile_twirp.rb → mobile_service_twirp.rb} +9 -9
- data/lib/wikipaddle_api/version.rb +1 -1
- data/lib/wikipaddle_api/webhooks/v1/webhooks_service_pb.rb +43 -0
- data/lib/wikipaddle_api/webhooks/v1/webhooks_service_twirp.rb +19 -0
- data/lib/wikipaddle_api.rb +3 -2
- metadata +14 -11
- data/lib/wikipaddle_api/admin/v1/admin_pb.rb +0 -42
- data/lib/wikipaddle_api/admin/v1/admin_twirp.rb +0 -19
- data/lib/wikipaddle_api/public/v1/mobile_pb.rb +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cfa18a9bfdd5139c3ada536f63e8d8cd4502d588d9ac631b89942847322b8ce
|
4
|
+
data.tar.gz: edb6936ff38848019fc8d3ddfb72b592fe2e63e90a53c30c8ef76285f2c9f4a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d71a33e6fa129ea1a78796be9bdf58a03db09cd886213750c072e8c5534599646f2101a8fd499e4799535b4166aa2076c9cf99db77a996ab48a33c26b5d1656
|
7
|
+
data.tar.gz: a00f973fd99dfbfa27e37a1841613da16eb3231ed9be98fe36bf4d3f66cf1ba80b9d746c8a68893208799a618af4f7ed818eccef2d6f0b7d6591922fe8932d0a
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
wikipaddle_api (1.1.2)
|
5
|
+
rack
|
6
|
+
twirp
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ast (2.4.2)
|
12
|
+
diff-lcs (1.5.0)
|
13
|
+
faraday (2.7.10)
|
14
|
+
faraday-net_http (>= 2.0, < 3.1)
|
15
|
+
ruby2_keywords (>= 0.0.4)
|
16
|
+
faraday-net_http (3.0.2)
|
17
|
+
google-protobuf (3.23.4-x86_64-darwin)
|
18
|
+
json (2.6.3)
|
19
|
+
language_server-protocol (3.17.0.3)
|
20
|
+
parallel (1.23.0)
|
21
|
+
parser (3.2.2.3)
|
22
|
+
ast (~> 2.4.1)
|
23
|
+
racc
|
24
|
+
racc (1.7.1)
|
25
|
+
rack (3.0.8)
|
26
|
+
rainbow (3.1.1)
|
27
|
+
rake (13.0.6)
|
28
|
+
regexp_parser (2.8.1)
|
29
|
+
rexml (3.2.5)
|
30
|
+
rspec (3.12.0)
|
31
|
+
rspec-core (~> 3.12.0)
|
32
|
+
rspec-expectations (~> 3.12.0)
|
33
|
+
rspec-mocks (~> 3.12.0)
|
34
|
+
rspec-core (3.12.1)
|
35
|
+
rspec-support (~> 3.12.0)
|
36
|
+
rspec-expectations (3.12.2)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.12.0)
|
39
|
+
rspec-mocks (3.12.5)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.12.0)
|
42
|
+
rspec-support (3.12.0)
|
43
|
+
rubocop (1.54.2)
|
44
|
+
json (~> 2.3)
|
45
|
+
language_server-protocol (>= 3.17.0)
|
46
|
+
parallel (~> 1.10)
|
47
|
+
parser (>= 3.2.2.3)
|
48
|
+
rainbow (>= 2.2.2, < 4.0)
|
49
|
+
regexp_parser (>= 1.8, < 3.0)
|
50
|
+
rexml (>= 3.2.5, < 4.0)
|
51
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
52
|
+
ruby-progressbar (~> 1.7)
|
53
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
54
|
+
rubocop-ast (1.29.0)
|
55
|
+
parser (>= 3.2.1.0)
|
56
|
+
ruby-progressbar (1.13.0)
|
57
|
+
ruby2_keywords (0.0.5)
|
58
|
+
twirp (1.10.0)
|
59
|
+
faraday (< 3)
|
60
|
+
google-protobuf (~> 3.0, >= 3.7.0)
|
61
|
+
unicode-display_width (2.4.2)
|
62
|
+
|
63
|
+
PLATFORMS
|
64
|
+
x86_64-darwin-22
|
65
|
+
|
66
|
+
DEPENDENCIES
|
67
|
+
rake (~> 13.0)
|
68
|
+
rspec (~> 3.0)
|
69
|
+
rubocop (~> 1.21)
|
70
|
+
wikipaddle_api!
|
71
|
+
|
72
|
+
BUNDLED WITH
|
73
|
+
2.4.6
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: wikipaddle_api/admin/v1/admin_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n+wikipaddle_api/admin/v1/admin_service.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\"h\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n\nfirst_name\x18\x02 \x01(\tR\tfirstName\x12\x1b\n\tlast_name\x18\x03 \x01(\tR\x08lastName\x12\x14\n\x05\x65mail\x18\x04 \x01(\tR\x05\x65mail\"\xee\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\x43\n\rstart_lat_lng\x18\x03 \x01(\x0b\x32\x1f.wikipaddle_api.admin.v1.LatLngR\x0bstartLatLng\x12?\n\x0b\x65nd_lat_lng\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\x12\x64istance_in_meters\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\x02id\"-\n\x15GetUserByEmailRequest\x12\x14\n\x05\x65mail\x18\x01 \x01(\tR\x05\x65mail\"K\n\x16GetUserByEmailResponse\x12\x31\n\x04user\x18\x01 \x01(\x0b\x32\x1d.wikipaddle_api.admin.v1.UserR\x04user\"$\n\x12GetUserByIdRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"H\n\x13GetUserByIdResponse\x12\x31\n\x04user\x18\x01 \x01(\x0b\x32\x1d.wikipaddle_api.admin.v1.UserR\x04user2\xd5\x02\n\x0c\x41\x64minService\x12h\n\x0b\x43reateGuide\x12+.wikipaddle_api.admin.v1.CreateGuideRequest\x1a,.wikipaddle_api.admin.v1.CreateGuideResponse\x12q\n\x0eGetUserByEmail\x12..wikipaddle_api.admin.v1.GetUserByEmailRequest\x1a/.wikipaddle_api.admin.v1.GetUserByEmailResponse\x12h\n\x0bGetUserById\x12+.wikipaddle_api.admin.v1.GetUserByIdRequest\x1a,.wikipaddle_api.admin.v1.GetUserByIdResponseB\x82\x02\n\x1b\x63om.wikipaddle_api.admin.v1B\x11\x41\x64minServiceProtoP\x01ZVgithub.com/wikipaddle/wikipaddle/protobuf/gen/go/wikipaddle_api/admin/v1/admin_service\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
|
+
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.User").msgclass
|
39
|
+
CreateGuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.CreateGuideRequest").msgclass
|
40
|
+
CreateGuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.CreateGuideResponse").msgclass
|
41
|
+
GetUserByEmailRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.GetUserByEmailRequest").msgclass
|
42
|
+
GetUserByEmailResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.GetUserByEmailResponse").msgclass
|
43
|
+
GetUserByIdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.GetUserByIdRequest").msgclass
|
44
|
+
GetUserByIdResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.admin.v1.GetUserByIdResponse").msgclass
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
|
2
|
+
require 'twirp'
|
3
|
+
require_relative 'admin_service_pb.rb'
|
4
|
+
|
5
|
+
module WikipaddleApi
|
6
|
+
module Admin
|
7
|
+
module V1
|
8
|
+
class AdminServiceService < ::Twirp::Service
|
9
|
+
package 'wikipaddle_api.admin.v1'
|
10
|
+
service 'AdminService'
|
11
|
+
rpc :CreateGuide, CreateGuideRequest, CreateGuideResponse, :ruby_method => :create_guide
|
12
|
+
rpc :GetUserByEmail, GetUserByEmailRequest, GetUserByEmailResponse, :ruby_method => :get_user_by_email
|
13
|
+
rpc :GetUserById, GetUserByIdRequest, GetUserByIdResponse, :ruby_method => :get_user_by_id
|
14
|
+
end
|
15
|
+
|
16
|
+
class AdminServiceClient < ::Twirp::Client
|
17
|
+
client_for AdminServiceService
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: wikipaddle_api/public/v1/mobile_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n-wikipaddle_api/public/v1/mobile_service.proto\x12\x18wikipaddle_api.public.v1\"@\n\x1bGetFeatureFlagStatusRequest\x12!\n\x0c\x66\x65\x61ture_name\x18\x01 \x01(\tR\x0b\x66\x65\x61tureName\"8\n\x1cGetFeatureFlagStatusResponse\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\"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\"\x87\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\x12localized_distance\x18\x05 \x01(\tR\x11localizedDistance\x12\x1f\n\x0bstar_rating\x18\x06 \x01(\tR\nstarRating\x12J\n\x06photos\x18\x07 \x03(\x0b\x32\x32.wikipaddle_api.public.v1.GuideCollectionItemPhotoR\x06photos\"\x17\n\x15GetCurrentUserRequest\"\x90\x01\n\nPagination\x12!\n\x0c\x63urrent_page\x18\x01 \x01(\x05R\x0b\x63urrentPage\x12\x19\n\x08per_page\x18\x02 \x01(\x05R\x07perPage\x12#\n\rtotal_results\x18\x03 \x01(\x05R\x0ctotalResults\x12\x1f\n\x0btotal_pages\x18\x04 \x01(\x05R\ntotalPages\" \n\x0eGetUserRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\x8e\x01\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n\nfirst_name\x18\x02 \x01(\tR\tfirstName\x12\x1b\n\tlast_name\x18\x03 \x01(\tR\x08lastName\x12\x1b\n\tfull_name\x18\x04 \x01(\tR\x08\x66ullName\x12\x1d\n\navatar_url\x18\x05 \x01(\tR\tavatarUrl\"E\n\x0fGetUserResponse\x12\x32\n\x04user\x18\x01 \x01(\x0b\x32\x1e.wikipaddle_api.public.v1.UserR\x04user\"L\n\x16GetCurrentUserResponse\x12\x32\n\x04user\x18\x01 \x01(\x0b\x32\x1e.wikipaddle_api.public.v1.UserR\x04user\"!\n\x0fGetGuideRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"I\n\x10GetGuideResponse\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\"\xd1\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\x44\n\rstart_lat_lng\x18\x06 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12@\n\x0b\x65nd_lat_lng\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\x12localized_distance\x18\x0b \x01(\tR\x11localizedDistance\x12%\n\x0e\x63omments_count\x18\x0c \x01(\x05R\rcommentsCount\x12#\n\ruploads_count\x18\r \x01(\x05R\x0cuploadsCount\x12\x1f\n\x0bstar_rating\x18\x0e \x01(\tR\nstarRating\"\xd9\x01\n\x0f\x46itnessActivity\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x44\n\rstart_lat_lng\x18\x03 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\x0bstartLatLng\x12@\n\x0b\x65nd_lat_lng\x18\x04 \x01(\x0b\x32 .wikipaddle_api.public.v1.LatLngR\tendLatLng\x12\x1a\n\x08polyline\x18\x05 \x01(\x0cR\x08polyline\"\xc0\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\x0euser_full_name\x18\x03 \x01(\tR\x0cuserFullName\x12&\n\x0fuser_avatar_url\x18\x04 \x01(\tR\ruserAvatarUrl\x12\x1d\n\ncreated_at\x18\x05 \x01(\tR\tcreatedAt\x12\x1f\n\x0bstar_rating\x18\x06 \x01(\x05R\nstarRating\"^\n\x1a\x43reateGuideCommentResponse\x12@\n\x07\x63omment\x18\x01 \x01(\x0b\x32&.wikipaddle_api.public.v1.GuideCommentR\x07\x63omment\"R\n!GetGuideCommentsCollectionRequest\x12\x19\n\x08guide_id\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\"k\n\x19\x43reateGuideCommentRequest\x12\x19\n\x08guide_id\x18\x01 \x01(\tR\x07guideId\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x12\x1f\n\x0bstar_rating\x18\x03 \x01(\x05R\nstarRating2\xef\x06\n\rMobileService\x12^\n\x07GetUser\x12(.wikipaddle_api.public.v1.GetUserRequest\x1a).wikipaddle_api.public.v1.GetUserResponse\x12\x61\n\x08GetGuide\x12).wikipaddle_api.public.v1.GetGuideRequest\x1a*.wikipaddle_api.public.v1.GetGuideResponse\x12\x82\x01\n\x13GetGuidesCollection\x12\x34.wikipaddle_api.public.v1.GetGuidesCollectionRequest\x1a\x35.wikipaddle_api.public.v1.GetGuidesCollectionResponse\x12s\n\x0eGetCurrentUser\x12/.wikipaddle_api.public.v1.GetCurrentUserRequest\x1a\x30.wikipaddle_api.public.v1.GetCurrentUserResponse\x12\x97\x01\n\x1aGetGuideCommentsCollection\x12;.wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest\x1a<.wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse\x12\x7f\n\x12\x43reateGuideComment\x12\x33.wikipaddle_api.public.v1.CreateGuideCommentRequest\x1a\x34.wikipaddle_api.public.v1.CreateGuideCommentResponse\x12\x85\x01\n\x14GetFeatureFlagStatus\x12\x35.wikipaddle_api.public.v1.GetFeatureFlagStatusRequest\x1a\x36.wikipaddle_api.public.v1.GetFeatureFlagStatusResponseB\x8c\x02\n\x1c\x63om.wikipaddle_api.public.v1B\x12MobileServiceProtoP\x01ZXgithub.com/wikipaddle/wikipaddle/protobuf/gen/go/wikipaddle_api/public/v1/mobile_service\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
|
+
GetFeatureFlagStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetFeatureFlagStatusRequest").msgclass
|
38
|
+
GetFeatureFlagStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetFeatureFlagStatusResponse").msgclass
|
39
|
+
GetGuidesCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionRequest").msgclass
|
40
|
+
GetGuidesCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionResponse").msgclass
|
41
|
+
GuideCollectionItemPhoto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItemPhoto").msgclass
|
42
|
+
GuideCollectionItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItem").msgclass
|
43
|
+
GetCurrentUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetCurrentUserRequest").msgclass
|
44
|
+
Pagination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Pagination").msgclass
|
45
|
+
GetUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetUserRequest").msgclass
|
46
|
+
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.User").msgclass
|
47
|
+
GetUserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetUserResponse").msgclass
|
48
|
+
GetCurrentUserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetCurrentUserResponse").msgclass
|
49
|
+
GetGuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideRequest").msgclass
|
50
|
+
GetGuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideResponse").msgclass
|
51
|
+
LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.LatLng").msgclass
|
52
|
+
Guide = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Guide").msgclass
|
53
|
+
FitnessActivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.FitnessActivity").msgclass
|
54
|
+
GuideComment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideComment").msgclass
|
55
|
+
CreateGuideCommentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.CreateGuideCommentResponse").msgclass
|
56
|
+
GetGuideCommentsCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest").msgclass
|
57
|
+
GetGuideCommentsCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse").msgclass
|
58
|
+
CreateGuideCommentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.CreateGuideCommentRequest").msgclass
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -1,24 +1,24 @@
|
|
1
1
|
# Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
|
2
2
|
require 'twirp'
|
3
|
-
require_relative '
|
3
|
+
require_relative 'mobile_service_pb.rb'
|
4
4
|
|
5
5
|
module WikipaddleApi
|
6
6
|
module Public
|
7
7
|
module V1
|
8
|
-
class
|
8
|
+
class MobileServiceService < ::Twirp::Service
|
9
9
|
package 'wikipaddle_api.public.v1'
|
10
|
-
service '
|
11
|
-
rpc :GetUser,
|
12
|
-
rpc :GetGuide,
|
10
|
+
service 'MobileService'
|
11
|
+
rpc :GetUser, GetUserRequest, GetUserResponse, :ruby_method => :get_user
|
12
|
+
rpc :GetGuide, GetGuideRequest, GetGuideResponse, :ruby_method => :get_guide
|
13
13
|
rpc :GetGuidesCollection, GetGuidesCollectionRequest, GetGuidesCollectionResponse, :ruby_method => :get_guides_collection
|
14
|
-
rpc :GetCurrentUser, GetCurrentUserRequest,
|
14
|
+
rpc :GetCurrentUser, GetCurrentUserRequest, GetCurrentUserResponse, :ruby_method => :get_current_user
|
15
15
|
rpc :GetGuideCommentsCollection, GetGuideCommentsCollectionRequest, GetGuideCommentsCollectionResponse, :ruby_method => :get_guide_comments_collection
|
16
|
-
rpc :CreateGuideComment, CreateGuideCommentRequest,
|
16
|
+
rpc :CreateGuideComment, CreateGuideCommentRequest, CreateGuideCommentResponse, :ruby_method => :create_guide_comment
|
17
17
|
rpc :GetFeatureFlagStatus, GetFeatureFlagStatusRequest, GetFeatureFlagStatusResponse, :ruby_method => :get_feature_flag_status
|
18
18
|
end
|
19
19
|
|
20
|
-
class
|
21
|
-
client_for
|
20
|
+
class MobileServiceClient < ::Twirp::Client
|
21
|
+
client_for MobileServiceService
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: wikipaddle_api/webhooks/v1/webhooks_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n1wikipaddle_api/webhooks/v1/webhooks_service.proto\x12\x1awikipaddle_api.webhooks.v1\",\n\x06Object\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\"\xc3\x01\n\x19\x43reateWebhookEventRequest\x12\x44\n\nevent_type\x18\x01 \x01(\x0e\x32%.wikipaddle_api.webhooks.v1.EventTypeR\teventType\x12\x17\n\x07user_id\x18\x02 \x01(\tR\x06userId\x12G\n\rtarget_object\x18\x03 \x01(\x0b\x32\".wikipaddle_api.webhooks.v1.ObjectR\x0ctargetObject\"6\n\x1a\x43reateWebhookEventResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success*a\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45VENT_TYPE_USER_CREATED\x10\x01\x12\x1b\n\x17\x45VENT_TYPE_USER_UPDATED\x10\x02\x32\x97\x01\n\x0fWebhooksService\x12\x83\x01\n\x12\x43reateWebhookEvent\x12\x35.wikipaddle_api.webhooks.v1.CreateWebhookEventRequest\x1a\x36.wikipaddle_api.webhooks.v1.CreateWebhookEventResponseB\x99\x02\n\x1e\x63om.wikipaddle_api.webhooks.v1B\x14WebhooksServiceProtoP\x01Z[github.com/wikipaddle/wikipaddle/protobuf/gen/go/wikipaddle_api/webhooks/v1/webhook_service\xa2\x02\x03WWX\xaa\x02\x19WikipaddleApi.Webhooks.V1\xca\x02\x19WikipaddleApi\\Webhooks\\V1\xe2\x02%WikipaddleApi\\Webhooks\\V1\\GPBMetadata\xea\x02\x1bWikipaddleApi::Webhooks::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 Webhooks
|
36
|
+
module V1
|
37
|
+
Object = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.Object").msgclass
|
38
|
+
CreateWebhookEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.CreateWebhookEventRequest").msgclass
|
39
|
+
CreateWebhookEventResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.CreateWebhookEventResponse").msgclass
|
40
|
+
EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.webhooks.v1.EventType").enummodule
|
41
|
+
end
|
42
|
+
end
|
43
|
+
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 'webhooks_service_pb.rb'
|
4
|
+
|
5
|
+
module WikipaddleApi
|
6
|
+
module Webhooks
|
7
|
+
module V1
|
8
|
+
class WebhooksServiceService < ::Twirp::Service
|
9
|
+
package 'wikipaddle_api.webhooks.v1'
|
10
|
+
service 'WebhooksService'
|
11
|
+
rpc :CreateWebhookEvent, CreateWebhookEventRequest, CreateWebhookEventResponse, :ruby_method => :create_webhook_event
|
12
|
+
end
|
13
|
+
|
14
|
+
class WebhooksServiceClient < ::Twirp::Client
|
15
|
+
client_for WebhooksServiceService
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/wikipaddle_api.rb
CHANGED
@@ -3,8 +3,9 @@
|
|
3
3
|
require "rack"
|
4
4
|
|
5
5
|
require_relative "wikipaddle_api/version"
|
6
|
-
require_relative "wikipaddle_api/public/v1/
|
7
|
-
require_relative "wikipaddle_api/admin/v1/
|
6
|
+
require_relative "wikipaddle_api/public/v1/mobile_service_twirp"
|
7
|
+
require_relative "wikipaddle_api/admin/v1/admin_service_twirp"
|
8
|
+
require_relative "wikipaddle_api/webhooks/v1/webhooks_service_twirp"
|
8
9
|
|
9
10
|
module WikipaddleApi
|
10
11
|
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.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Drummond
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- georgedrummond@gmail.com
|
44
44
|
executables: []
|
@@ -48,15 +48,18 @@ files:
|
|
48
48
|
- ".rspec"
|
49
49
|
- ".rubocop.yml"
|
50
50
|
- Gemfile
|
51
|
+
- Gemfile.lock
|
51
52
|
- LICENSE
|
52
53
|
- README.md
|
53
54
|
- Rakefile
|
54
55
|
- lib/wikipaddle_api.rb
|
55
|
-
- lib/wikipaddle_api/admin/v1/
|
56
|
-
- lib/wikipaddle_api/admin/v1/
|
57
|
-
- lib/wikipaddle_api/public/v1/
|
58
|
-
- lib/wikipaddle_api/public/v1/
|
56
|
+
- lib/wikipaddle_api/admin/v1/admin_service_pb.rb
|
57
|
+
- lib/wikipaddle_api/admin/v1/admin_service_twirp.rb
|
58
|
+
- lib/wikipaddle_api/public/v1/mobile_service_pb.rb
|
59
|
+
- lib/wikipaddle_api/public/v1/mobile_service_twirp.rb
|
59
60
|
- lib/wikipaddle_api/version.rb
|
61
|
+
- lib/wikipaddle_api/webhooks/v1/webhooks_service_pb.rb
|
62
|
+
- lib/wikipaddle_api/webhooks/v1/webhooks_service_twirp.rb
|
60
63
|
- sig/wikipaddle_api.rbs
|
61
64
|
- wikipaddle_api.gemspec
|
62
65
|
homepage: https://github.com/wikipaddle/protobuf
|
@@ -64,7 +67,7 @@ licenses:
|
|
64
67
|
- GPL-3.0
|
65
68
|
metadata:
|
66
69
|
homepage_uri: https://github.com/wikipaddle/protobuf
|
67
|
-
post_install_message:
|
70
|
+
post_install_message:
|
68
71
|
rdoc_options: []
|
69
72
|
require_paths:
|
70
73
|
- lib
|
@@ -79,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
82
|
- !ruby/object:Gem::Version
|
80
83
|
version: '0'
|
81
84
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
83
|
-
signing_key:
|
85
|
+
rubygems_version: 3.4.6
|
86
|
+
signing_key:
|
84
87
|
specification_version: 4
|
85
88
|
summary: Protobuf client and server for the Wikipaddle API
|
86
89
|
test_files: []
|
@@ -1,42 +0,0 @@
|
|
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
|
@@ -1,19 +0,0 @@
|
|
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
|
@@ -1,59 +0,0 @@
|
|
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\"?\n\x1bGetFeatureFlagStatusRequest\x12 \n\x0b\x66\x65\x61tureName\x18\x01 \x01(\tR\x0b\x66\x65\x61tureName\"8\n\x1cGetFeatureFlagStatusResponse\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\"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\xc4\x06\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.GuideComment\x12\x85\x01\n\x14GetFeatureFlagStatus\x12\x35.wikipaddle_api.public.v1.GetFeatureFlagStatusRequest\x1a\x36.wikipaddle_api.public.v1.GetFeatureFlagStatusResponseB\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
|
-
GetFeatureFlagStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetFeatureFlagStatusRequest").msgclass
|
38
|
-
GetFeatureFlagStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetFeatureFlagStatusResponse").msgclass
|
39
|
-
GetGuidesCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionRequest").msgclass
|
40
|
-
GetGuidesCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuidesCollectionResponse").msgclass
|
41
|
-
GuideCollectionItemPhoto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItemPhoto").msgclass
|
42
|
-
GuideCollectionItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideCollectionItem").msgclass
|
43
|
-
GetCurrentUserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetCurrentUserRequest").msgclass
|
44
|
-
Pagination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Pagination").msgclass
|
45
|
-
UserRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.UserRequest").msgclass
|
46
|
-
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.User").msgclass
|
47
|
-
UserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.UserResponse").msgclass
|
48
|
-
GuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideRequest").msgclass
|
49
|
-
GuideResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideResponse").msgclass
|
50
|
-
LatLng = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.LatLng").msgclass
|
51
|
-
Guide = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.Guide").msgclass
|
52
|
-
FitnessActivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.FitnessActivity").msgclass
|
53
|
-
GuideComment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GuideComment").msgclass
|
54
|
-
GetGuideCommentsCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionRequest").msgclass
|
55
|
-
GetGuideCommentsCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.GetGuideCommentsCollectionResponse").msgclass
|
56
|
-
CreateGuideCommentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("wikipaddle_api.public.v1.CreateGuideCommentRequest").msgclass
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|