{"action":"created","issue":{"url":"https://api.github.com/repos/Mila432/Pokemon_Go_API/issues/28","repository_url":"https://api.github.com/repos/Mila432/Pokemon_Go_API","labels_url":"https://api.github.com/repos/Mila432/Pokemon_Go_API/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/Mila432/Pokemon_Go_API/issues/28/comments","events_url":"https://api.github.com/repos/Mila432/Pokemon_Go_API/issues/28/events","html_url":"https://github.com/Mila432/Pokemon_Go_API/issues/28","id":165954776,"number":28,"title":"Updated proto for you","user":{"login":"Nostrademous","id":1735956,"avatar_url":"https://avatars.githubusercontent.com/u/1735956?v=3","gravatar_id":"","url":"https://api.github.com/users/Nostrademous","html_url":"https://github.com/Nostrademous","followers_url":"https://api.github.com/users/Nostrademous/followers","following_url":"https://api.github.com/users/Nostrademous/following{/other_user}","gists_url":"https://api.github.com/users/Nostrademous/gists{/gist_id}","starred_url":"https://api.github.com/users/Nostrademous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nostrademous/subscriptions","organizations_url":"https://api.github.com/users/Nostrademous/orgs","repos_url":"https://api.github.com/users/Nostrademous/repos","events_url":"https://api.github.com/users/Nostrademous/events{/privacy}","received_events_url":"https://api.github.com/users/Nostrademous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-17T01:02:40Z","updated_at":"2016-07-18T02:13:35Z","closed_at":null,"body":"```\r\nmessage RequestEnvelop {\r\n  required int32 unknown1 = 1;\r\n  optional int64 rpc_id = 3;\r\n  repeated Requests requests = 4;\r\n  optional Unknown6 unknown6 = 6;\r\n  optional fixed64 latitude = 7;\r\n  optional fixed64 longitude = 8;\r\n  optional fixed64 altitude = 9;\r\n  optional AuthInfo auth = 10;\r\n  optional UnknownAuth unknown11 = 11;\r\n  optional int64 unknown12 = 12;\r\n\r\n  message Requests {\r\n    required int32 type = 1;\r\n    optional bytes message = 2;\r\n  }\r\n\r\n  message MessageSingleString {\r\n    required bytes bytes = 1;\r\n  }\r\n\r\n  message MessageSingleInt {\r\n    required int64 f1 = 1;\r\n  }\r\n\r\n  message MessageTwoInts {\r\n    required int64 f1 = 1;\r\n    required int64 f5 = 5;\r\n  }\r\n\r\n  message MessageQuad {\r\n    required bytes f1 = 1;\r\n    required bytes f2 = 2;\r\n    required fixed64 lat = 3;\r\n    required fixed64 long = 4;\r\n  }\r\n\r\n  message Wat {\r\n    repeated int64 lols = 134217728;\r\n  }\r\n\r\n  message Unknown3 {\r\n    required bytes unknown4 = 1;\r\n    optional bytes unknown2 = 2;\r\n    optional fixed64 lat = 3;\r\n    optional fixed64 long = 4;\r\n  }\r\n\r\n  message Unknown6 {\r\n    required int32 unknown1 = 1;\r\n    required Unknown2 unknown2 = 2;\r\n\r\n    message Unknown2 {\r\n      required bytes unknown1 = 1;\r\n    }\r\n\r\n  }\r\n  message AuthInfo {\r\n    required string provider = 1;\r\n    required JWT token = 2;\r\n\r\n    message JWT {\r\n      required string contents = 1;\r\n      required int32 unknown13  = 2;\r\n    }\r\n  }\r\n}\r\n\r\n\r\nmessage UnknownAuth {\r\n  optional bytes unknown71 = 1;\r\n  optional int64 unknown72 = 2;\r\n  optional bytes unknown73 = 3;\r\n}\r\n\r\nmessage ResponseEnvelop {\r\n  required int32 unknown1 = 1;\r\n  optional int64 unknown2 = 2;\r\n  optional string api_url = 3;\r\n  optional Unknown6 unknown6 = 6;\r\n  optional UnknownAuth unknown7 = 7;\r\n  repeated bytes payload = 100;\r\n\r\n  message Unknown6 {\r\n    required int32 unknown1 = 1;\r\n    required Unknown2 unknown2 = 2;\r\n\r\n    message Unknown2 {\r\n      required bytes unknown1 = 1;\r\n    }\r\n\r\n  }\r\n\r\n  message HeartbeatPayload {\r\n    repeated ClientMapCell cells = 1;\r\n  }\r\n\r\n  message ClientMapCell {\r\n    required uint64 S2CellId = 1;\r\n    required int64 AsOfTimeMs = 2;\r\n    repeated PokemonFortProto Fort = 3;\r\n    repeated ClientSpawnPointProto SpawnPoint = 4;\r\n    repeated WildPokemonProto WildPokemon = 5;\r\n    //unknown DeletedObject = 6;\r\n    optional bool IsTruncatedList = 7;\r\n    repeated PokemonSummaryFortProto FortSummary = 8;\r\n    repeated ClientSpawnPointProto DecimatedSpawnPoint = 9;\r\n    repeated MapPokemonProto MapPokemon = 10;\r\n    repeated NearbyPokemonProto NearbyPokemon = 11;\r\n  }\r\n\r\n\r\n  message WildPokemon {\r\n    required string UniqueId = 1;\r\n    required string PokemonId = 2;\r\n    // int64 three = 3;\r\n    // float four = 4;\r\n    // int32 five = 5;\r\n    // unknown six = 6;\r\n    repeated NearbyPokemonProto pokemon = 11;\r\n  }\r\n\r\n\r\n  message MapPokemonProto {\r\n    required string SpawnpointId = 1;\r\n    required uint64 EncounterId = 2;\r\n    required int32 PokedexTypeId = 3;\r\n    required int64 ExpirationTimeMs = 4;\r\n    required double Latitude = 5;\r\n    required double Longitude = 6;\r\n  }\r\n\r\n  message PokemonFortProto {\r\n    required string FortId = 1;\r\n    required int64 LastModifiedMs = 2;\r\n    required double Latitude = 3;\r\n    required double Longitude = 4;\r\n    required int32 Team = 5;\r\n    required int32 GuardPokemonId = 6;\r\n    required int32 GuardPokemonLevel = 7;\r\n    required bool Enabled = 8;\r\n    // ENUM.Holoholo.Rpc.FortType FortType = 9;\r\n    required int32 FortType = 9;\r\n    required int64 GymPoints = 10;\r\n    required bool IsInBattle = 11;\r\n    //unknown ActiveFortModifier = 12;\r\n    optional MapPokemonProto ActivePokemon = 13;\r\n    required int64 CooldownCompleteMs = 14;\r\n    // ENUM.Holoholo.Rpc.Sponsor.Types.FortSponsor.Sponsor Sponsor = 15;\r\n    required int32 Sponsor = 15;\r\n    // ENUM.Holoholo.Rpc.RenderingType.Types.FortRenderingType.RenderingType RenderingType = 16;\r\n    optional int32 RenderingType = 16;\r\n  }\r\n\r\n  message PokemonSummaryFortProto {\r\n    required string FortSummaryId = 1;\r\n    required int64 LastModifiedMs = 2;\r\n    required double Latitude = 3;\r\n    required double Longitude = 4;\r\n  }\r\n\r\n  message ClientSpawnPointProto {\r\n    required double Latitude = 2;\r\n    required double Longitude = 3;\r\n  }\r\n\r\n  message WildPokemonProto {\r\n    optional uint64 EncounterId = 1;\r\n    optional int64 LastModifiedMs = 2;\r\n    optional double Latitude = 3;\r\n    optional double Longitude = 4;\r\n    optional string SpawnPointId = 5;\r\n    optional Pokemon pokemon = 7;\r\n    optional int32 TimeTillHiddenMs = 11;\r\n\r\n    message Pokemon {\r\n    \toptional uint64 Id = 1;\r\n    \toptional int32 PokemonId = 2;\r\n    }\r\n  }\r\n\r\n  message NearbyPokemonProto {\r\n    optional int32 PokedexNumber = 1;\r\n    optional float DistanceMeters = 2;\r\n    optional uint64 EncounterId = 3;\r\n  }\r\n\r\n  message ProfilePayload {\r\n    required int32 unknown1 = 1;\r\n    optional Profile profile = 2;\r\n  }\r\n\r\n  message Profile {\r\n    required int64 creation_time = 1;\r\n    optional string username = 2;\r\n    optional int32 team = 5;\r\n    optional bytes tutorial = 7;\r\n    optional AvatarDetails avatar = 8;\r\n    optional int32 poke_storage = 9;\r\n    optional int32 item_storage = 10;\r\n    optional DailyBonus daily_bonus = 11;\r\n    optional bytes unknown12 = 12;\r\n    optional bytes unknown13 = 13;\r\n    repeated Currency currency = 14;\r\n\r\n    message AvatarDetails {\r\n      optional int32 unknown2 = 2;\r\n      optional int32 unknown3 = 3;\r\n      optional int32 unknown9 = 9;\r\n      optional int32 unknown10 = 10;\r\n    }\r\n\r\n    message DailyBonus {\r\n      optional int64 NextCollectTimestampMs = 1;\r\n      optional int64 NextDefenderBonusCollectTimestampMs = 2;\r\n\t}\r\n\r\n    message Currency {\r\n      required string type = 1;\r\n      optional int32 amount = 2;\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Mila432/Pokemon_Go_API/issues/comments/233218332","html_url":"https://github.com/Mila432/Pokemon_Go_API/issues/28#issuecomment-233218332","issue_url":"https://api.github.com/repos/Mila432/Pokemon_Go_API/issues/28","id":233218332,"user":{"login":"Nostrademous","id":1735956,"avatar_url":"https://avatars.githubusercontent.com/u/1735956?v=3","gravatar_id":"","url":"https://api.github.com/users/Nostrademous","html_url":"https://github.com/Nostrademous","followers_url":"https://api.github.com/users/Nostrademous/followers","following_url":"https://api.github.com/users/Nostrademous/following{/other_user}","gists_url":"https://api.github.com/users/Nostrademous/gists{/gist_id}","starred_url":"https://api.github.com/users/Nostrademous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nostrademous/subscriptions","organizations_url":"https://api.github.com/users/Nostrademous/orgs","repos_url":"https://api.github.com/users/Nostrademous/repos","events_url":"https://api.github.com/users/Nostrademous/events{/privacy}","received_events_url":"https://api.github.com/users/Nostrademous/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T02:13:34Z","updated_at":"2016-07-18T02:13:34Z","body":"never mind - I learned to google and created my own pb2 files.\r\n\r\nBelow Answers it:\r\n[https://developers.google.com/protocol-buffers/docs/pythontutorial](https://developers.google.com/protocol-buffers/docs/pythontutorial)\r\n\r\nprotobuf compiler for Linux comes as:\r\n`sudo apt-get install protobuf-compiler`\r\n\r\nthen you can run 'protoc'\r\n\r\n"}}
{"actor":{"display_login":"Nostrademous"}}