Example #1
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Id != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(Id);
     }
     if (H != 0F)
     {
         output.WriteRawTag(21);
         output.WriteFloat(H);
     }
     if (S != 0F)
     {
         output.WriteRawTag(29);
         output.WriteFloat(S);
     }
     if (V != 0F)
     {
         output.WriteRawTag(37);
         output.WriteFloat(V);
     }
 }
Example #2
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (HasAccountId)
     {
         output.WriteRawTag(10);
         output.WriteMessage(AccountId);
     }
     if (HasBattleTag)
     {
         output.WriteRawTag(18);
         output.WriteString(BattleTag);
     }
     role_.WriteTo(output, _repeated_role_codec);
     if (HasPrivileges)
     {
         output.WriteRawTag(32);
         output.WriteUInt64(Privileges);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Result != 0)
     {
         output.WriteRawTag(8);
         output.WriteEnum((int)Result);
     }
     if (PokemonId != 0)
     {
         output.WriteRawTag(16);
         output.WriteEnum((int)PokemonId);
     }
     if (CombatPoints != 0)
     {
         output.WriteRawTag(24);
         output.WriteInt32(CombatPoints);
     }
     if (PokemonDataId != 0UL)
     {
         output.WriteRawTag(32);
         output.WriteUInt64(PokemonDataId);
     }
 }
Example #4
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (HasBoolValue)
     {
         output.WriteRawTag(8);
         output.WriteBool(BoolValue);
     }
     if (HasIntValue)
     {
         output.WriteRawTag(16);
         output.WriteInt64(IntValue);
     }
     if (HasFloatValue)
     {
         output.WriteRawTag(25);
         output.WriteDouble(FloatValue);
     }
     if (HasStringValue)
     {
         output.WriteRawTag(34);
         output.WriteString(StringValue);
     }
     if (HasBlobValue)
     {
         output.WriteRawTag(42);
         output.WriteBytes(BlobValue);
     }
     if (HasUintValue)
     {
         output.WriteRawTag(48);
         output.WriteUInt64(UintValue);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #5
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (ChallengeNumber != 0)
     {
         output.WriteRawTag(8);
         output.WriteUInt32(ChallengeNumber);
     }
     if (ChallengeStartUnixTime != 0L)
     {
         output.WriteRawTag(16);
         output.WriteInt64(ChallengeStartUnixTime);
     }
     if (ChallengeLastBroadcastUnixTime != 0L)
     {
         output.WriteRawTag(24);
         output.WriteInt64(ChallengeLastBroadcastUnixTime);
     }
     if (ChallengeEndUnixTimeConsole != 0L)
     {
         output.WriteRawTag(32);
         output.WriteInt64(ChallengeEndUnixTimeConsole);
     }
     if (ChallengeHash != 0UL)
     {
         output.WriteRawTag(40);
         output.WriteUInt64(ChallengeHash);
     }
     if (ChallengeNephalemOrbMultiplier != 0F)
     {
         output.WriteRawTag(53);
         output.WriteFloat(ChallengeNephalemOrbMultiplier);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #6
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (RequestedBytes != 0L)
     {
         output.WriteRawTag(8);
         output.WriteInt64(RequestedBytes);
     }
     if (AllocatedBytes != 0L)
     {
         output.WriteRawTag(16);
         output.WriteInt64(AllocatedBytes);
     }
     if (AllocatorName.Length != 0)
     {
         output.WriteRawTag(26);
         output.WriteString(AllocatorName);
     }
     if (AllocationId != 0L)
     {
         output.WriteRawTag(32);
         output.WriteInt64(AllocationId);
     }
     if (HasSingleReference != false)
     {
         output.WriteRawTag(40);
         output.WriteBool(HasSingleReference);
     }
     if (Ptr != 0UL)
     {
         output.WriteRawTag(48);
         output.WriteUInt64(Ptr);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (EncounterId != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(EncounterId);
     }
     if (FortId.Length != 0)
     {
         output.WriteRawTag(18);
         output.WriteString(FortId);
     }
     if (PlayerLatitude != 0D)
     {
         output.WriteRawTag(25);
         output.WriteDouble(PlayerLatitude);
     }
     if (PlayerLongitude != 0D)
     {
         output.WriteRawTag(33);
         output.WriteDouble(PlayerLongitude);
     }
     if (GymLatDegrees != 0D)
     {
         output.WriteRawTag(41);
         output.WriteDouble(GymLatDegrees);
     }
     if (GymLngDegrees != 0D)
     {
         output.WriteRawTag(49);
         output.WriteDouble(GymLngDegrees);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #8
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Blockchain.Length != 0)
     {
         output.WriteRawTag(10);
         output.WriteString(Blockchain);
     }
     if (AskOrder.Length != 0)
     {
         output.WriteRawTag(18);
         output.WriteString(AskOrder);
     }
     if (BidOrder.Length != 0)
     {
         output.WriteRawTag(26);
         output.WriteString(BidOrder);
     }
     if (Expiration != 0UL)
     {
         output.WriteRawTag(32);
         output.WriteUInt64(Expiration);
     }
     if (Block.Length != 0)
     {
         output.WriteRawTag(42);
         output.WriteString(Block);
     }
     if (Sighash.Length != 0)
     {
         output.WriteRawTag(50);
         output.WriteString(Sighash);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #9
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Id != 0)
     {
         output.WriteRawTag(8);
         output.WriteInt32(Id);
     }
     if (Type != 0)
     {
         output.WriteRawTag(16);
         output.WriteEnum((int)Type);
     }
     if (SharedDataDir.Length != 0)
     {
         output.WriteRawTag(26);
         output.WriteString(SharedDataDir);
     }
     if (GameName.Length != 0)
     {
         output.WriteRawTag(34);
         output.WriteString(GameName);
     }
     if (TargetName.Length != 0)
     {
         output.WriteRawTag(42);
         output.WriteString(TargetName);
     }
     if (TargetTimestamp != 0UL)
     {
         output.WriteRawTag(48);
         output.WriteUInt64(TargetTimestamp);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #10
0
     public void WriteTo(pb::CodedOutputStream output)
     {
 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
         output.WriteRawMessage(this);
 #else
         if (ChannelID != 0UL)
         {
             output.WriteRawTag(8);
             output.WriteUInt64(ChannelID);
         }
         if (SteamID.Length != 0)
         {
             output.WriteRawTag(18);
             output.WriteString(SteamID);
         }
         if (Duration.Length != 0)
         {
             output.WriteRawTag(26);
             output.WriteString(Duration);
         }
         if (Reason.Length != 0)
         {
             output.WriteRawTag(34);
             output.WriteString(Reason);
         }
         if (AdminTag.Length != 0)
         {
             output.WriteRawTag(42);
             output.WriteString(AdminTag);
         }
         if (_unknownFields != null)
         {
             _unknownFields.WriteTo(output);
         }
 #endif
     }
Example #11
0
 public override void WriteTo(pb::CodedOutputStream output)
 {
     if (HasClientTime)
     {
         output.WriteFixed64(9, ClientTime);
     }
     if (HasServerTime)
     {
         output.WriteFixed64(10, ServerTime);
     }
     if (HasSyncRound)
     {
         output.WriteUInt64(11, SyncRound);
     }
     if (HasReturnOptions)
     {
         output.WriteUInt32(14, ReturnOptions);
     }
     if (HasRoundTrip)
     {
         output.WriteFixed64(2561, RoundTrip);
     }
     UnknownFields.WriteTo(output);
 }
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (idOneofCase_ == IdOneofOneofCase.Id)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(Id);
     }
     if (statusOneofCase_ == StatusOneofOneofCase.Status)
     {
         output.WriteRawTag(16);
         output.WriteUInt32(Status);
     }
     if (messageOneofCase_ == MessageOneofOneofCase.Message)
     {
         output.WriteRawTag(26);
         output.WriteString(Message);
     }
     if (bodyOneofCase_ == BodyOneofOneofCase.Body)
     {
         output.WriteRawTag(34);
         output.WriteBytes(Body);
     }
     headers_.WriteTo(output, _repeated_headers_codec);
 }
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (verbOneofCase_ == VerbOneofOneofCase.Verb)
     {
         output.WriteRawTag(10);
         output.WriteString(Verb);
     }
     if (pathOneofCase_ == PathOneofOneofCase.Path)
     {
         output.WriteRawTag(18);
         output.WriteString(Path);
     }
     if (bodyOneofCase_ == BodyOneofOneofCase.Body)
     {
         output.WriteRawTag(26);
         output.WriteBytes(Body);
     }
     if (idOneofCase_ == IdOneofOneofCase.Id)
     {
         output.WriteRawTag(32);
         output.WriteUInt64(Id);
     }
     headers_.WriteTo(output, _repeated_headers_codec);
 }
Example #14
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Result != 0)
     {
         output.WriteRawTag(8);
         output.WriteEnum((int)Result);
     }
     template_.WriteTo(output, _repeated_template_codec);
     deletedTemplate_.WriteTo(output, _repeated_deletedTemplate_codec);
     if (BatchId != 0UL)
     {
         output.WriteRawTag(32);
         output.WriteUInt64(BatchId);
     }
     if (PageOffset != 0)
     {
         output.WriteRawTag(40);
         output.WriteInt32(PageOffset);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #15
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (CreatedOn != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(CreatedOn);
     }
     if (UserID.Length != 0)
     {
         output.WriteRawTag(18);
         output.WriteString(UserID);
     }
     if (TaxRate != 0)
     {
         output.WriteRawTag(24);
         output.WriteUInt32(TaxRate);
     }
     if (shippingInfo_ != null)
     {
         output.WriteRawTag(34);
         output.WriteMessage(ShippingInfo);
     }
     lineItems_.WriteTo(output, _repeated_lineItems_codec);
 }
Example #16
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (agentId_ != null)
     {
         output.WriteRawTag(10);
         output.WriteMessage(AgentId);
     }
     if (entityId_ != null)
     {
         output.WriteRawTag(18);
         output.WriteMessage(EntityId);
     }
     if (ObjectId != 0UL)
     {
         output.WriteRawTag(24);
         output.WriteUInt64(ObjectId);
     }
     program_.WriteTo(output, _repeated_program_codec);
     if (FlagPublic != false)
     {
         output.WriteRawTag(40);
         output.WriteBool(FlagPublic);
     }
 }
Example #17
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (GymId.Length != 0)
     {
         output.WriteRawTag(10);
         output.WriteString(GymId);
     }
     attackingPokemonIds_.WriteTo(output, _repeated_attackingPokemonIds_codec);
     if (DefendingPokemonId != 0UL)
     {
         output.WriteRawTag(24);
         output.WriteUInt64(DefendingPokemonId);
     }
     if (PlayerLatitude != 0D)
     {
         output.WriteRawTag(33);
         output.WriteDouble(PlayerLatitude);
     }
     if (PlayerLongitude != 0D)
     {
         output.WriteRawTag(41);
         output.WriteDouble(PlayerLongitude);
     }
 }
Example #18
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (PushType != 0)
     {
         output.WriteRawTag(8);
         output.WriteEnum((int)PushType);
     }
     if (GameID != 0)
     {
         output.WriteRawTag(16);
         output.WriteUInt32(GameID);
     }
     if (RoomID != 0UL)
     {
         output.WriteRawTag(24);
         output.WriteUInt64(RoomID);
     }
     dstUids_.WriteTo(output, _repeated_dstUids_codec);
     if (CpProto.Length != 0)
     {
         output.WriteRawTag(42);
         output.WriteBytes(CpProto);
     }
 }
Example #19
0
     public void WriteTo(pb::CodedOutputStream output)
     {
 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
         output.WriteRawMessage(this);
 #else
         if (TeamSkillTagId != 0UL)
         {
             output.WriteRawTag(8);
             output.WriteUInt64(TeamSkillTagId);
         }
         if (TeamSkillTagType != 0)
         {
             output.WriteRawTag(16);
             output.WriteInt32(TeamSkillTagType);
         }
         if (U3 != 0)
         {
             output.WriteRawTag(24);
             output.WriteInt32(U3);
         }
         if (U4 != 0)
         {
             output.WriteRawTag(32);
             output.WriteInt32(U4);
         }
         if (ScheduleId.Length != 0)
         {
             output.WriteRawTag(42);
             output.WriteString(ScheduleId);
         }
         if (_unknownFields != null)
         {
             _unknownFields.WriteTo(output);
         }
 #endif
     }
Example #20
0
     public void WriteTo(pb::CodedOutputStream output)
     {
 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
         output.WriteRawMessage(this);
 #else
         if (ScoutName.Length != 0)
         {
             output.WriteRawTag(10);
             output.WriteString(ScoutName);
         }
         if (TrainerId != 0UL)
         {
             output.WriteRawTag(16);
             output.WriteUInt64(TrainerId);
         }
         if (DropRate != 0)
         {
             output.WriteRawTag(24);
             output.WriteUInt32(DropRate);
         }
         if (DisplayOrder != 0)
         {
             output.WriteRawTag(32);
             output.WriteUInt32(DisplayOrder);
         }
         if (U5 != 0)
         {
             output.WriteRawTag(40);
             output.WriteUInt32(U5);
         }
         if (_unknownFields != null)
         {
             _unknownFields.WriteTo(output);
         }
 #endif
     }
Example #21
0
     public void WriteTo(pb::CodedOutputStream output)
     {
 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
         output.WriteRawMessage(this);
 #else
         if (EvolutionId != 0UL)
         {
             output.WriteRawTag(8);
             output.WriteUInt64(EvolutionId);
         }
         if (TrainerId != 0UL)
         {
             output.WriteRawTag(16);
             output.WriteUInt64(TrainerId);
         }
         if (MonsterIdCurrent != 0UL)
         {
             output.WriteRawTag(24);
             output.WriteUInt64(MonsterIdCurrent);
         }
         if (MonsterIdNext != 0UL)
         {
             output.WriteRawTag(32);
             output.WriteUInt64(MonsterIdNext);
         }
         if (U5 != 0)
         {
             output.WriteRawTag(40);
             output.WriteInt32(U5);
         }
         if (U6 != 0)
         {
             output.WriteRawTag(48);
             output.WriteInt32(U6);
         }
         if (U7 != 0)
         {
             output.WriteRawTag(56);
             output.WriteInt32(U7);
         }
         if (U8 != 0)
         {
             output.WriteRawTag(64);
             output.WriteInt32(U8);
         }
         if (U9 != 0)
         {
             output.WriteRawTag(72);
             output.WriteInt32(U9);
         }
         if (U10 != 0)
         {
             output.WriteRawTag(80);
             output.WriteInt32(U10);
         }
         if (U11 != 0)
         {
             output.WriteRawTag(88);
             output.WriteInt32(U11);
         }
         if (U12 != 0)
         {
             output.WriteRawTag(96);
             output.WriteInt32(U12);
         }
         if (U13 != 0)
         {
             output.WriteRawTag(104);
             output.WriteInt32(U13);
         }
         if (U14 != 0)
         {
             output.WriteRawTag(112);
             output.WriteInt32(U14);
         }
         if (U15 != 0)
         {
             output.WriteRawTag(120);
             output.WriteInt32(U15);
         }
         if (U16 != 0)
         {
             output.WriteRawTag(128, 1);
             output.WriteInt32(U16);
         }
         if (U17 != 0)
         {
             output.WriteRawTag(136, 1);
             output.WriteInt32(U17);
         }
         if (U18 != 0)
         {
             output.WriteRawTag(144, 1);
             output.WriteInt32(U18);
         }
         if (U19 != 0)
         {
             output.WriteRawTag(152, 1);
             output.WriteInt32(U19);
         }
         if (U20 != 0)
         {
             output.WriteRawTag(160, 1);
             output.WriteInt32(U20);
         }
         if (ScheduleId.Length != 0)
         {
             output.WriteRawTag(170, 1);
             output.WriteString(ScheduleId);
         }
         if (_unknownFields != null)
         {
             _unknownFields.WriteTo(output);
         }
 #endif
     }
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Id != 0UL)
     {
         output.WriteRawTag(9);
         output.WriteFixed64(Id);
     }
     if (PokemonId != 0)
     {
         output.WriteRawTag(16);
         output.WriteEnum((int)PokemonId);
     }
     if (Cp != 0)
     {
         output.WriteRawTag(24);
         output.WriteInt32(Cp);
     }
     if (Stamina != 0)
     {
         output.WriteRawTag(32);
         output.WriteInt32(Stamina);
     }
     if (StaminaMax != 0)
     {
         output.WriteRawTag(40);
         output.WriteInt32(StaminaMax);
     }
     if (Move1 != 0)
     {
         output.WriteRawTag(48);
         output.WriteEnum((int)Move1);
     }
     if (Move2 != 0)
     {
         output.WriteRawTag(56);
         output.WriteEnum((int)Move2);
     }
     if (DeployedFortId.Length != 0)
     {
         output.WriteRawTag(66);
         output.WriteString(DeployedFortId);
     }
     if (OwnerName.Length != 0)
     {
         output.WriteRawTag(74);
         output.WriteString(OwnerName);
     }
     if (IsEgg != false)
     {
         output.WriteRawTag(80);
         output.WriteBool(IsEgg);
     }
     if (EggKmWalkedTarget != 0D)
     {
         output.WriteRawTag(89);
         output.WriteDouble(EggKmWalkedTarget);
     }
     if (EggKmWalkedStart != 0D)
     {
         output.WriteRawTag(97);
         output.WriteDouble(EggKmWalkedStart);
     }
     if (Origin != 0)
     {
         output.WriteRawTag(112);
         output.WriteInt32(Origin);
     }
     if (HeightM != 0F)
     {
         output.WriteRawTag(125);
         output.WriteFloat(HeightM);
     }
     if (WeightKg != 0F)
     {
         output.WriteRawTag(133, 1);
         output.WriteFloat(WeightKg);
     }
     if (IndividualAttack != 0)
     {
         output.WriteRawTag(136, 1);
         output.WriteInt32(IndividualAttack);
     }
     if (IndividualDefense != 0)
     {
         output.WriteRawTag(144, 1);
         output.WriteInt32(IndividualDefense);
     }
     if (IndividualStamina != 0)
     {
         output.WriteRawTag(152, 1);
         output.WriteInt32(IndividualStamina);
     }
     if (CpMultiplier != 0F)
     {
         output.WriteRawTag(165, 1);
         output.WriteFloat(CpMultiplier);
     }
     if (Pokeball != 0)
     {
         output.WriteRawTag(168, 1);
         output.WriteEnum((int)Pokeball);
     }
     if (CapturedCellId != 0UL)
     {
         output.WriteRawTag(176, 1);
         output.WriteUInt64(CapturedCellId);
     }
     if (BattlesAttacked != 0)
     {
         output.WriteRawTag(184, 1);
         output.WriteInt32(BattlesAttacked);
     }
     if (BattlesDefended != 0)
     {
         output.WriteRawTag(192, 1);
         output.WriteInt32(BattlesDefended);
     }
     if (EggIncubatorId.Length != 0)
     {
         output.WriteRawTag(202, 1);
         output.WriteString(EggIncubatorId);
     }
     if (CreationTimeMs != 0UL)
     {
         output.WriteRawTag(208, 1);
         output.WriteUInt64(CreationTimeMs);
     }
     if (NumUpgrades != 0)
     {
         output.WriteRawTag(216, 1);
         output.WriteInt32(NumUpgrades);
     }
     if (AdditionalCpMultiplier != 0F)
     {
         output.WriteRawTag(229, 1);
         output.WriteFloat(AdditionalCpMultiplier);
     }
     if (Favorite != 0)
     {
         output.WriteRawTag(232, 1);
         output.WriteInt32(Favorite);
     }
     if (Nickname.Length != 0)
     {
         output.WriteRawTag(242, 1);
         output.WriteString(Nickname);
     }
     if (FromFort != 0)
     {
         output.WriteRawTag(248, 1);
         output.WriteInt32(FromFort);
     }
     if (BuddyCandyAwarded != 0)
     {
         output.WriteRawTag(128, 2);
         output.WriteInt32(BuddyCandyAwarded);
     }
     if (BuddyTotalKmWalked != 0F)
     {
         output.WriteRawTag(141, 2);
         output.WriteFloat(BuddyTotalKmWalked);
     }
     if (DisplayPokemonId != 0)
     {
         output.WriteRawTag(144, 2);
         output.WriteInt32(DisplayPokemonId);
     }
     if (DisplayCp != 0)
     {
         output.WriteRawTag(152, 2);
         output.WriteInt32(DisplayCp);
     }
 }
Example #23
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Id != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(Id);
     }
     if (ActorId.Length != 0)
     {
         output.WriteRawTag(18);
         output.WriteString(ActorId);
     }
     if (TrainerNameId.Length != 0)
     {
         output.WriteRawTag(26);
         output.WriteString(TrainerNameId);
     }
     if (U4 != 0)
     {
         output.WriteRawTag(32);
         output.WriteInt32(U4);
     }
     if (U5.Length != 0)
     {
         output.WriteRawTag(42);
         output.WriteString(U5);
     }
     if (U6 != 0)
     {
         output.WriteRawTag(48);
         output.WriteInt32(U6);
     }
     if (U7 != 0)
     {
         output.WriteRawTag(56);
         output.WriteInt32(U7);
     }
     if (Gender != 0)
     {
         output.WriteRawTag(64);
         output.WriteInt32(Gender);
     }
     if (PokeballId.Length != 0)
     {
         output.WriteRawTag(74);
         output.WriteString(PokeballId);
     }
     if (IsGeneric != 0)
     {
         output.WriteRawTag(80);
         output.WriteInt32(IsGeneric);
     }
     if (BattleBgmId.Length != 0)
     {
         output.WriteRawTag(90);
         output.WriteString(BattleBgmId);
     }
     if (ResultBgmId.Length != 0)
     {
         output.WriteRawTag(98);
         output.WriteString(ResultBgmId);
     }
     if (U13.Length != 0)
     {
         output.WriteRawTag(106);
         output.WriteString(U13);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #24
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (ItemSetId != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(ItemSetId);
     }
     if (Item1 != 0L)
     {
         output.WriteRawTag(16);
         output.WriteInt64(Item1);
     }
     if (Item1Quantity != 0)
     {
         output.WriteRawTag(24);
         output.WriteUInt32(Item1Quantity);
     }
     if (Item2 != 0L)
     {
         output.WriteRawTag(32);
         output.WriteInt64(Item2);
     }
     if (Item2Quantity != 0)
     {
         output.WriteRawTag(40);
         output.WriteUInt32(Item2Quantity);
     }
     if (Item3 != 0L)
     {
         output.WriteRawTag(48);
         output.WriteInt64(Item3);
     }
     if (Item3Quantity != 0)
     {
         output.WriteRawTag(56);
         output.WriteUInt32(Item3Quantity);
     }
     if (Item4 != 0L)
     {
         output.WriteRawTag(64);
         output.WriteInt64(Item4);
     }
     if (Item4Quantity != 0)
     {
         output.WriteRawTag(72);
         output.WriteUInt32(Item4Quantity);
     }
     if (Item5 != 0L)
     {
         output.WriteRawTag(80);
         output.WriteInt64(Item5);
     }
     if (Item5Quantity != 0)
     {
         output.WriteRawTag(88);
         output.WriteUInt32(Item5Quantity);
     }
     if (Item6 != 0L)
     {
         output.WriteRawTag(96);
         output.WriteInt64(Item6);
     }
     if (Item6Quantity != 0)
     {
         output.WriteRawTag(104);
         output.WriteUInt32(Item6Quantity);
     }
     if (Item7 != 0L)
     {
         output.WriteRawTag(112);
         output.WriteInt64(Item7);
     }
     if (Item7Quantity != 0)
     {
         output.WriteRawTag(120);
         output.WriteUInt32(Item7Quantity);
     }
     if (Item8 != 0L)
     {
         output.WriteRawTag(128, 1);
         output.WriteInt64(Item8);
     }
     if (Item8Quantity != 0)
     {
         output.WriteRawTag(136, 1);
         output.WriteUInt32(Item8Quantity);
     }
     if (Item9 != 0L)
     {
         output.WriteRawTag(144, 1);
         output.WriteInt64(Item9);
     }
     if (Item9Quantity != 0)
     {
         output.WriteRawTag(152, 1);
         output.WriteUInt32(Item9Quantity);
     }
     if (Item10 != 0L)
     {
         output.WriteRawTag(160, 1);
         output.WriteInt64(Item10);
     }
     if (Item10Quantity != 0)
     {
         output.WriteRawTag(168, 1);
         output.WriteUInt32(Item10Quantity);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #25
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (StoryQuestId != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(StoryQuestId);
     }
     if (QuestNameId.Length != 0)
     {
         output.WriteRawTag(18);
         output.WriteString(QuestNameId);
     }
     if (FieldId != 0UL)
     {
         output.WriteRawTag(24);
         output.WriteUInt64(FieldId);
     }
     if (RequiredConditionId != 0L)
     {
         output.WriteRawTag(32);
         output.WriteInt64(RequiredConditionId);
     }
     if (SortBy != 0UL)
     {
         output.WriteRawTag(40);
         output.WriteUInt64(SortBy);
     }
     if (AreaSpotId != 0UL)
     {
         output.WriteRawTag(48);
         output.WriteUInt64(AreaSpotId);
     }
     if (ItemSetId != 0UL)
     {
         output.WriteRawTag(56);
         output.WriteUInt64(ItemSetId);
     }
     if (QuestGroupId != 0UL)
     {
         output.WriteRawTag(64);
         output.WriteUInt64(QuestGroupId);
     }
     if (FieldType != 0)
     {
         output.WriteRawTag(72);
         output.WriteInt32(FieldType);
     }
     if (ScheduleId.Length != 0)
     {
         output.WriteRawTag(82);
         output.WriteString(ScheduleId);
     }
     if (PlayCountLimit != 0L)
     {
         output.WriteRawTag(88);
         output.WriteInt64(PlayCountLimit);
     }
     if (ChapterOpenAnimation != false)
     {
         output.WriteRawTag(96);
         output.WriteBool(ChapterOpenAnimation);
     }
     if (Difficulty != 0)
     {
         output.WriteRawTag(104);
         output.WriteEnum((int)Difficulty);
     }
     if (WeekScheduleKeyword.Length != 0)
     {
         output.WriteRawTag(114);
         output.WriteString(WeekScheduleKeyword);
     }
     if (Debug != false)
     {
         output.WriteRawTag(120);
         output.WriteBool(Debug);
     }
     if (DebugCategory != 0L)
     {
         output.WriteRawTag(128, 1);
         output.WriteInt64(DebugCategory);
     }
     if (RewardType != 0)
     {
         output.WriteRawTag(136, 1);
         output.WriteInt32(RewardType);
     }
     if (ShowcasedItemId != 0L)
     {
         output.WriteRawTag(144, 1);
         output.WriteInt64(ShowcasedItemId);
     }
     if (CharaQuestListItemId != 0L)
     {
         output.WriteRawTag(152, 1);
         output.WriteInt64(CharaQuestListItemId);
     }
     if (IsEvolutionQuest != false)
     {
         output.WriteRawTag(160, 1);
         output.WriteBool(IsEvolutionQuest);
     }
     if (QuestType != 0)
     {
         output.WriteRawTag(168, 1);
         output.WriteEnum((int)QuestType);
     }
     if (IsSearchQuest != false)
     {
         output.WriteRawTag(176, 1);
         output.WriteBool(IsSearchQuest);
     }
     if (NextQuestId != 0UL)
     {
         output.WriteRawTag(184, 1);
         output.WriteUInt64(NextQuestId);
     }
     if (U24 != 0UL)
     {
         output.WriteRawTag(192, 1);
         output.WriteUInt64(U24);
     }
     if (U25 != 0UL)
     {
         output.WriteRawTag(200, 1);
         output.WriteUInt64(U25);
     }
     if (U26 != 0UL)
     {
         output.WriteRawTag(208, 1);
         output.WriteUInt64(U26);
     }
     if (U27 != 0UL)
     {
         output.WriteRawTag(216, 1);
         output.WriteUInt64(U27);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Type != 0)
     {
         output.WriteRawTag(8);
         output.WriteEnum((int)Type);
     }
     if (ActionStartMs != 0L)
     {
         output.WriteRawTag(16);
         output.WriteInt64(ActionStartMs);
     }
     if (DurationMs != 0)
     {
         output.WriteRawTag(24);
         output.WriteInt32(DurationMs);
     }
     if (EnergyDelta != 0)
     {
         output.WriteRawTag(40);
         output.WriteInt32(EnergyDelta);
     }
     if (AttackerIndex != 0)
     {
         output.WriteRawTag(48);
         output.WriteInt32(AttackerIndex);
     }
     if (TargetIndex != 0)
     {
         output.WriteRawTag(56);
         output.WriteInt32(TargetIndex);
     }
     if (ActivePokemonId != 0UL)
     {
         output.WriteRawTag(64);
         output.WriteUInt64(ActivePokemonId);
     }
     if (playerJoined_ != null)
     {
         output.WriteRawTag(74);
         output.WriteMessage(PlayerJoined);
     }
     if (battleResults_ != null)
     {
         output.WriteRawTag(82);
         output.WriteMessage(BattleResults);
     }
     if (DamageWindowsStartTimestampMs != 0L)
     {
         output.WriteRawTag(88);
         output.WriteInt64(DamageWindowsStartTimestampMs);
     }
     if (DamageWindowsEndTimestampMs != 0L)
     {
         output.WriteRawTag(96);
         output.WriteInt64(DamageWindowsEndTimestampMs);
     }
     if (playerLeft_ != null)
     {
         output.WriteRawTag(106);
         output.WriteMessage(PlayerLeft);
     }
     if (TargetPokemonId != 0UL)
     {
         output.WriteRawTag(112);
         output.WriteUInt64(TargetPokemonId);
     }
     if (leveledUpFriends_ != null)
     {
         output.WriteRawTag(122);
         output.WriteMessage(LeveledUpFriends);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #27
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (Hash.Length != 0)
     {
         output.WriteRawTag(10);
         output.WriteBytes(Hash);
     }
     if (From.Length != 0)
     {
         output.WriteRawTag(18);
         output.WriteBytes(From);
     }
     if (To.Length != 0)
     {
         output.WriteRawTag(26);
         output.WriteBytes(To);
     }
     if (Value.Length != 0)
     {
         output.WriteRawTag(34);
         output.WriteBytes(Value);
     }
     if (Nonce != 0UL)
     {
         output.WriteRawTag(40);
         output.WriteUInt64(Nonce);
     }
     if (Timestamp != 0L)
     {
         output.WriteRawTag(48);
         output.WriteInt64(Timestamp);
     }
     if (data_ != null)
     {
         output.WriteRawTag(58);
         output.WriteMessage(Data);
     }
     if (ChainId != 0)
     {
         output.WriteRawTag(64);
         output.WriteUInt32(ChainId);
     }
     if (GasPrice.Length != 0)
     {
         output.WriteRawTag(74);
         output.WriteBytes(GasPrice);
     }
     if (GasLimit.Length != 0)
     {
         output.WriteRawTag(82);
         output.WriteBytes(GasLimit);
     }
     if (Alg != 0)
     {
         output.WriteRawTag(88);
         output.WriteUInt32(Alg);
     }
     if (Sign.Length != 0)
     {
         output.WriteRawTag(98);
         output.WriteBytes(Sign);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Example #28
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (MaxDistanceValid != false)
     {
         output.WriteRawTag(8);
         output.WriteBool(MaxDistanceValid);
     }
     if (SensorIdValid != false)
     {
         output.WriteRawTag(16);
         output.WriteBool(SensorIdValid);
     }
     if (RadarPowerValid != false)
     {
         output.WriteRawTag(24);
         output.WriteBool(RadarPowerValid);
     }
     if (OutputTypeValid != false)
     {
         output.WriteRawTag(32);
         output.WriteBool(OutputTypeValid);
     }
     if (SendQualityValid != false)
     {
         output.WriteRawTag(40);
         output.WriteBool(SendQualityValid);
     }
     if (SendExtInfoValid != false)
     {
         output.WriteRawTag(48);
         output.WriteBool(SendExtInfoValid);
     }
     if (SortIndexValid != false)
     {
         output.WriteRawTag(56);
         output.WriteBool(SortIndexValid);
     }
     if (StoreInNvmValid != false)
     {
         output.WriteRawTag(64);
         output.WriteBool(StoreInNvmValid);
     }
     if (CtrlRelayValid != false)
     {
         output.WriteRawTag(72);
         output.WriteBool(CtrlRelayValid);
     }
     if (RcsThresholdValid != false)
     {
         output.WriteRawTag(80);
         output.WriteBool(RcsThresholdValid);
     }
     if (MaxDistance != 0)
     {
         output.WriteRawTag(88);
         output.WriteUInt32(MaxDistance);
     }
     if (SensorId != 0)
     {
         output.WriteRawTag(96);
         output.WriteUInt32(SensorId);
     }
     if (OutputType != 0)
     {
         output.WriteRawTag(104);
         output.WriteEnum((int)OutputType);
     }
     if (RadarPower != 0)
     {
         output.WriteRawTag(112);
         output.WriteUInt32(RadarPower);
     }
     if (CtrlRelay != 0)
     {
         output.WriteRawTag(120);
         output.WriteUInt32(CtrlRelay);
     }
     if (SendExtInfo != false)
     {
         output.WriteRawTag(128, 1);
         output.WriteBool(SendExtInfo);
     }
     if (SendQuality != false)
     {
         output.WriteRawTag(136, 1);
         output.WriteBool(SendQuality);
     }
     if (SortIndex != 0)
     {
         output.WriteRawTag(144, 1);
         output.WriteUInt32(SortIndex);
     }
     if (StoreInNvm != 0)
     {
         output.WriteRawTag(152, 1);
         output.WriteUInt32(StoreInNvm);
     }
     if (RcsThreshold != 0)
     {
         output.WriteRawTag(160, 1);
         output.WriteEnum((int)RcsThreshold);
     }
     if (InputSendInterval != 0UL)
     {
         output.WriteRawTag(168, 1);
         output.WriteUInt64(InputSendInterval);
     }
 }
Example #29
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (AccountId != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(AccountId);
     }
     if (PlayerId != 0UL)
     {
         output.WriteRawTag(16);
         output.WriteUInt64(PlayerId);
     }
     if (Diamonds != 0)
     {
         output.WriteRawTag(24);
         output.WriteInt32(Diamonds);
     }
     if (OldLevel != 0)
     {
         output.WriteRawTag(32);
         output.WriteInt32(OldLevel);
     }
     if (OldExp != 0)
     {
         output.WriteRawTag(40);
         output.WriteInt32(OldExp);
     }
     if (AddedExp != 0)
     {
         output.WriteRawTag(48);
         output.WriteInt32(AddedExp);
     }
     if (Hp != 0)
     {
         output.WriteRawTag(56);
         output.WriteInt32(Hp);
     }
     if (Mp != 0)
     {
         output.WriteRawTag(64);
         output.WriteInt32(Mp);
     }
     if (Food != 0)
     {
         output.WriteRawTag(72);
         output.WriteInt32(Food);
     }
     if (Gold != 0)
     {
         output.WriteRawTag(80);
         output.WriteInt32(Gold);
     }
     cards_.WriteTo(output, _repeated_cards_codec);
     cardTemps_.WriteTo(output, _repeated_cardTemps_codec);
     items_.WriteTo(output, _repeated_items_codec);
     itemTemps_.WriteTo(output, _repeated_itemTemps_codec);
     buffs_.WriteTo(output, _repeated_buffs_codec);
     buffTemps_.WriteTo(output, _repeated_buffTemps_codec);
     equips_.WriteTo(output, _repeated_equips_codec);
     equipTemps_.WriteTo(output, _repeated_equipTemps_codec);
 }
Example #30
0
 public void WriteTo(pb::CodedOutputStream output)
 {
     if (TrainerId != 0UL)
     {
         output.WriteRawTag(8);
         output.WriteUInt64(TrainerId);
     }
     if (U2 != 0)
     {
         output.WriteRawTag(16);
         output.WriteInt32(U2);
     }
     if (ScoutMethod != 0)
     {
         output.WriteRawTag(24);
         output.WriteInt32(ScoutMethod);
     }
     if (TrainerBaseId != 0)
     {
         output.WriteRawTag(32);
         output.WriteInt32(TrainerBaseId);
     }
     if (Type != 0)
     {
         output.WriteRawTag(40);
         output.WriteInt32(Type);
     }
     if (Rarity != 0)
     {
         output.WriteRawTag(48);
         output.WriteInt32(Rarity);
     }
     if (Role != 0)
     {
         output.WriteRawTag(56);
         output.WriteInt32(Role);
     }
     if (MonsterId != 0UL)
     {
         output.WriteRawTag(64);
         output.WriteUInt64(MonsterId);
     }
     if (Move1Id != 0)
     {
         output.WriteRawTag(72);
         output.WriteInt32(Move1Id);
     }
     if (Move2Id != 0)
     {
         output.WriteRawTag(80);
         output.WriteInt32(Move2Id);
     }
     if (Move3Id != 0)
     {
         output.WriteRawTag(88);
         output.WriteInt32(Move3Id);
     }
     if (Move4Id != 0)
     {
         output.WriteRawTag(96);
         output.WriteInt32(Move4Id);
     }
     if (WeakType != 0)
     {
         output.WriteRawTag(104);
         output.WriteInt32(WeakType);
     }
     if (U14 != 0)
     {
         output.WriteRawTag(112);
         output.WriteInt32(U14);
     }
     if (U15 != 0)
     {
         output.WriteRawTag(120);
         output.WriteInt32(U15);
     }
     if (Passive1Id != 0)
     {
         output.WriteRawTag(128, 1);
         output.WriteInt32(Passive1Id);
     }
     if (Passive2Id != 0)
     {
         output.WriteRawTag(136, 1);
         output.WriteInt32(Passive2Id);
     }
     if (Passive3Id != 0)
     {
         output.WriteRawTag(144, 1);
         output.WriteInt32(Passive3Id);
     }
     if (Passive4Id != 0)
     {
         output.WriteRawTag(152, 1);
         output.WriteInt32(Passive4Id);
     }
     if (Passive5Id != 0)
     {
         output.WriteRawTag(160, 1);
         output.WriteInt32(Passive5Id);
     }
     if (U21.Length != 0)
     {
         output.WriteRawTag(170, 1);
         output.WriteString(U21);
     }
     if (ScheduleId.Length != 0)
     {
         output.WriteRawTag(178, 1);
         output.WriteString(ScheduleId);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }