Sie sind auf Seite 1von 256

package com.badoo.mobile.

model;

import com.badoo.mobile.comms.ProtoAccess;
import com.badoo.mobile.comms.proto.CodedOutputStream;
import java.io.IOException;
import java.util.Hashtable;
import java.util.List;
import java.util.Vector;

public class ProtoAccessEncode extends ProtoAccessDecode {


protected int computeObjectSize(Object obj, int type) {
switch (type) {
case ProtoAccess.TYPE_MESSAGE /* 20 */:
return computeMessageSize((Hashtable) obj);
case ProtoAccess.TYPE_SERVER_APP_STARTUP /* 21 */:
return computeServerAppStartupSize((ServerAppStartup) obj);
case ProtoAccess.TYPE_CLIENT_STARTUP /* 22 */:
return computeClientStartupSize((ClientStartup) obj);
case ProtoAccess.TYPE_SERVER_UPDATE_LOCATION /* 23 */:
return computeServerUpdateLocationSize((ServerUpdateLocation)
obj);
case ProtoAccess.TYPE_SERVER_LOGIN_BY_PASSWORD /* 27 */:
return computeServerLoginByPasswordSize((ServerLoginByPassword)
obj);
case ProtoAccess.TYPE_FORM_FAILURE /* 28 */:
return computeFormFailureSize((FormFailure) obj);
case ProtoAccess.TYPE_APP_SETTINGS /* 30 */:
return computeAppSettingsSize((AppSettings) obj);
case ProtoAccess.TYPE_TUPLE /* 33 */:
return computeTupleSize((Tuple) obj);
case ProtoAccess.TYPE_MODIFIED_OBJECT /* 34 */:
return computeModifiedObjectSize((ModifiedObject) obj);
case ProtoAccess.TYPE_PERSON /* 36 */:
return computePersonSize((Person) obj);
case ProtoAccess.TYPE_PERSON_PROFILE /* 37 */:
return computePersonProfileSize((PersonProfile) obj);
case ProtoAccess.TYPE_PERSON_STATUS /* 38 */:
return computePersonStatusSize((PersonStatus) obj);

case ProtoAccess.TYPE_CLIENT_PICTURE /* 39 */:


return computeClientPictureSize((ClientPicture) obj);
case ProtoAccess.TYPE_SERVER_FOLDER_ACTION /* 43 */:
return computeServerFolderActionSize((ServerFolderAction) obj);
case ProtoAccess.TYPE_SERVER_SEND_USER_REPORT /* 44 */:
return computeServerSendUserReportSize((ServerSendUserReport)
obj);
case ProtoAccess.TYPE_SERVER_FEEDBACK_FORM /* 45 */:
return computeServerFeedbackFormSize((ServerFeedbackForm) obj);
case ProtoAccess.TYPE_SEARCH_SETTINGS /* 46 */:
return computeSearchSettingsSize((SearchSettings) obj);
case ProtoAccess.TYPE_SERVER_ENCOUNTERS_VOTE /* 47 */:
return computeServerEncountersVoteSize((ServerEncountersVote)
obj);
case ProtoAccess.TYPE_SERVER_GET_ENCOUNTERS /* 49 */:
return computeServerGetEncountersSize((ServerGetEncounters) obj);
case ProtoAccess.TYPE_NO_MORE_SEARCH_RESULTS /* 50 */:
return computeNoMoreSearchResultsSize((NoMoreSearchResults) obj);
case ProtoAccess.TYPE_CLIENT_ENCOUNTERS /* 51 */:
return computeClientEncountersSize((ClientEncounters) obj);
case ProtoAccess.TYPE_ALBUM /* 52 */:
return computeAlbumSize((Album) obj);
case ProtoAccess.TYPE_SERVER_REQUEST_ALBUM_ACCESS /* 53 */:
return
computeServerRequestAlbumAccessSize((ServerRequestAlbumAccess) obj);
case ProtoAccess.TYPE_SERVER_UPLOAD_PHOTO /* 54 */:
return computeServerUploadPhotoSize((ServerUploadPhoto) obj);
case ProtoAccess.TYPE_CHAT_INSTANCE /* 61 */:
return computeChatInstanceSize((ChatInstance) obj);
case ProtoAccess.TYPE_CHAT_MESSAGE /* 62 */:
return computeChatMessageSize((ChatMessage) obj);
case ProtoAccess.TYPE_CHAT_IS_WRITING /* 63 */:
return computeChatIsWritingSize((ChatIsWriting) obj);
case ProtoAccess.TYPE_SERVER_REQUEST_PICTURE /* 65 */:
return computeServerRequestPictureSize((Hashtable) obj);
case ProtoAccess.TYPE_CLIENT_LOGIN_SUCCESS /* 66 */:
return computeClientLoginSuccessSize((ClientLoginSuccess) obj);
case ProtoAccess.TYPE_PHONEBOOK_CONTACT /* 67 */:
return computePhonebookContactSize((PhonebookContact) obj);
case ProtoAccess.TYPE_USER_REPORT_TYPE /* 69 */:
return computeUserReportTypeSize((UserReportType) obj);
case ProtoAccess.TYPE_CLIENT_OPEN_CHAT /* 70 */:
return computeClientOpenChatSize((ClientOpenChat) obj);
case ProtoAccess.TYPE_SERVER_OPEN_CHAT /* 73 */:
return computeServerOpenChatSize((ServerOpenChat) obj);
case ProtoAccess.TYPE_SERVER_ERROR_MESSAGE /* 74 */:
return computeServerErrorMessageSize((ServerErrorMessage) obj);
case ProtoAccess.TYPE_SERVER_GET_ALBUM /* 78 */:
return computeServerGetAlbumSize((ServerGetAlbum) obj);
case ProtoAccess.TYPE_SAVE_PROFILE /* 80 */:
return computeSaveProfileSize((SaveProfile) obj);
case ProtoAccess.TYPE_CLIENT_VOTE_RESPONSE /* 81 */:
return computeClientVoteResponseSize((ClientVoteResponse) obj);
case ProtoAccess.TYPE_SEARCH_SETTINGS_FAILURE /* 82 */:
return computeSearchSettingsFailureSize((SearchSettingsFailure)
obj);
case ProtoAccess.TYPE_SEARCH_SETTINGS_CONTEXT /* 83 */:
return computeSearchSettingsContextSize((SearchSettingsContext)
obj);
case ProtoAccess.TYPE_APPLICATION_FEATURE /* 87 */:
return computeApplicationFeatureSize((ApplicationFeature) obj);
case ProtoAccess.TYPE_SERVER_GET_PERSON_PROFILE /* 88 */:
return computeServerGetPersonProfileSize((ServerGetPersonProfile)
obj);
case ProtoAccess.TYPE_PROFILE_VISITING_SOURCE /* 89 */:
return computeProfileVisitingSourceSize((ProfileVisitingSource)
obj);
case ProtoAccess.TYPE_CHAT_MESSAGE_RECEIVED /* 90 */:
return computeChatMessageReceivedSize((ChatMessageReceived) obj);
case ProtoAccess.TYPE_FEATURE_PRODUCT_LIST /* 91 */:
return computeFeatureProductListSize((FeatureProductList) obj);
case ProtoAccess.TYPE_PURCHASE_RECEIPT /* 92 */:
return computePurchaseReceiptSize((PurchaseReceipt) obj);
case ProtoAccess.TYPE_CLIENT_UPLOAD_PHOTO /* 93 */:
return computeClientUploadPhotoSize((ClientUploadPhoto) obj);
case ProtoAccess.TYPE_FOLDER_REQUEST /* 94 */:
return computeFolderRequestSize((FolderRequest) obj);
case ProtoAccess.TYPE_CLIENT_NOTIFICATION /* 95 */:
return computeClientNotificationSize((ClientNotification) obj);
case ProtoAccess.TYPE_PRODUCT_REQUEST /* 96 */:
return computeProductRequestSize((ProductRequest) obj);
case ProtoAccess.TYPE_PURCHASE_TRANSACTION_SETUP /* 97 */:
return
computePurchaseTransactionSetupSize((PurchaseTransactionSetup) obj);
case ProtoAccess.TYPE_PURCHASE_TRANSACTION /* 98 */:
return computePurchaseTransactionSize((PurchaseTransaction) obj);
case ProtoAccess.TYPE_PURCHASE_TRANSACTION_FAILED /* 99 */:
return
computePurchaseTransactionFailedSize((PurchaseTransactionFailed) obj);
case ProtoAccess.TYPE_CLIENT_PURCHASE_RECEIPT /* 104 */:
return computeClientPurchaseReceiptSize((ClientPurchaseReceipt)
obj);
case ProtoAccess.TYPE_PROMO_BLOCK /* 106 */:
return computePromoBlockSize((PromoBlock) obj);
case ProtoAccess.TYPE_CLIENT_USER_DATA_INCOMPLETE /* 107 */:
return
computeClientUserDataIncompleteSize((ClientUserDataIncomplete) obj);
case ProtoAccess.TYPE_PROVIDER_PRODUCT_ID /* 109 */:
return computeProviderProductIdSize((ProviderProductId) obj);
case ProtoAccess.TYPE_PRODUCT_TERMS /* 110 */:
return computeProductTermsSize((ProductTerms) obj);
case ProtoAccess.TYPE_PAYMENT_SETTINGS /* 111 */:
return computePaymentSettingsSize((PaymentSettings) obj);
case ProtoAccess.TYPE_FEATURE_PRE_PURCHASE_INFO /* 113 */:
return computeFeaturePrePurchaseInfoSize((FeaturePrePurchaseInfo)
obj);
case ProtoAccess.TYPE_CITIES /* 114 */:
return computeCitiesSize((Cities) obj);
case ProtoAccess.TYPE_COUNTRY /* 117 */:
return computeCountrySize((Country) obj);
case ProtoAccess.TYPE_PHONEBOOK_CONTACTLIST /* 120 */:
return computePhonebookContactlistSize((PhonebookContactlist)
obj);
case ProtoAccess.TYPE_PHONEBOOK_CONTACT_DETAIL /* 121 */:
return computePhonebookContactDetailSize((PhonebookContactDetail)
obj);
case ProtoAccess.TYPE_GROUP /* 126 */:
return computeGroupSize((Group) obj);
case ProtoAccess.TYPE_INTEREST /* 127 */:
return computeInterestSize((Interest) obj);
case ProtoAccess.TYPE_INTERESTS_GROUPS /* 128 */:
return computeInterestsGroupsSize((InterestsGroups) obj);
case ProtoAccess.TYPE_CLIENT_INTERESTS /* 129 */:
return computeClientInterestsSize((ClientInterests) obj);
case ProtoAccess.TYPE_SERVER_INTERESTS_GET /* 130 */:
return computeServerInterestsGetSize((ServerInterestsGet) obj);
case ProtoAccess.TYPE_INTERESTS_UPDATE /* 131 */:
return computeInterestsUpdateSize((InterestsUpdate) obj);
case ProtoAccess.TYPE_SERVER_GET_USER_LIST /* 134 */:
return computeServerGetUserListSize((ServerGetUserList) obj);
case ProtoAccess.TYPE_CLIENT_USER_LIST /* 135 */:
return computeClientUserListSize((ClientUserList) obj);
case ProtoAccess.TYPE_CLIENT_CHANGE_HOST /* 136 */:
return computeClientChangeHostSize((ClientChangeHost) obj);
case ProtoAccess.TYPE_TIW_IDEAS /* 137 */:
return computeTiwIdeasSize((TiwIdeas) obj);
case ProtoAccess.TYPE_SERVER_GET_TIW_IDEAS /* 138 */:
return computeServerGetTiwIdeasSize((ServerGetTiwIdeas) obj);
case ProtoAccess.TYPE_SERVER_REQUEST_ALBUM_ACCESS_LEVEL /* 139 */:
return
computeServerRequestAlbumAccessLevelSize((ServerRequestAlbumAccessLevel) obj);
case ProtoAccess.TYPE_ALBUM_ACCESS /* 140 */:
return computeAlbumAccessSize((AlbumAccess) obj);
case ProtoAccess.TYPE_SPP_PURCHASE_STATISTIC /* 141 */:
return computeSppPurchaseStatisticSize((SppPurchaseStatistic)
obj);
case ProtoAccess.TYPE_SERVER_SECTION_USER_ACTION /* 146 */:
return
computeServerSectionUserActionSize((ServerSectionUserAction) obj);
case ProtoAccess.TYPE_SERVER_USER_VERIFIED_GET /* 147 */:
return computeServerUserVerifiedGetSize((ServerUserVerifiedGet)
obj);
case ProtoAccess.TYPE_CLIENT_USER_VERIFIED_GET /* 148 */:
return computeClientUserVerifiedGetSize((ClientUserVerifiedGet)
obj);
case ProtoAccess.TYPE_SERVER_USER_VERIFY /* 149 */:
return computeServerUserVerifySize((ServerUserVerify) obj);
case ProtoAccess.TYPE_CLIENT_USER_VERIFY /* 150 */:
return computeClientUserVerifySize((ClientUserVerify) obj);
case ProtoAccess.TYPE_SERVER_USER_REMOVE_VERIFY /* 151 */:
return computeServerUserRemoveVerifySize((ServerUserRemoveVerify)
obj);
case ProtoAccess.TYPE_CLIENT_USER_REMOVE_VERIFY /* 152 */:
return computeClientUserRemoveVerifySize((ClientUserRemoveVerify)
obj);
case ProtoAccess.TYPE_SERVER_APP_STATS /* 158 */:
return computeServerAppStatsSize((ServerAppStats) obj);
case ProtoAccess.TYPE_SERVER_GET_CHAT_MESSAGES /* 159 */:
return computeServerGetChatMessagesSize((ServerGetChatMessages)
obj);
case ProtoAccess.TYPE_CLIENT_CHAT_MESSAGES /* 160 */:
return computeClientChatMessagesSize((ClientChatMessages) obj);
case ProtoAccess.TYPE_SERVER_GET_PHOTOS_TO_RATE /* 166 */:
return computeServerGetPhotosToRateSize((ServerGetPhotosToRate)
obj);
case ProtoAccess.TYPE_CLIENT_GET_PHOTOS_TO_RATE /* 167 */:
return computeClientGetPhotosToRateSize((ClientGetPhotosToRate)
obj);
case ProtoAccess.TYPE_SERVER_RATE_PHOTO /* 168 */:
return computeServerRatePhotoSize((ServerRatePhoto) obj);
case ProtoAccess.TYPE_CLIENT_RATE_PHOTO_SUCCESS /* 169 */:
return computeClientRatePhotoSuccessSize((ClientRatePhotoSuccess)
obj);
case ProtoAccess.TYPE_CLIENT_GET_PHOTO_RATING_CONFIGURATION /* 170 */:
return
computeClientGetPhotoRatingConfigurationSize((ClientGetPhotoRatingConfiguration)
obj);
case ProtoAccess.TYPE_CLIENT_GET_OWN_PHOTO_RATING /* 171 */:
return
computeClientGetOwnPhotoRatingSize((ClientGetOwnPhotoRating) obj);
case ProtoAccess.TYPE_CLIENT_SPOTLIGHT_META_DATA /* 172 */:
return
computeClientSpotlightMetaDataSize((ClientSpotlightMetaData) obj);
case ProtoAccess.TYPE_SERVER_START_FRIENDS_IMPORT /* 175 */:
return
computeServerStartFriendsImportSize((ServerStartFriendsImport) obj);
case ProtoAccess.TYPE_CLIENT_FRIENDS_IMPORT /* 176 */:
return computeClientFriendsImportSize((ClientFriendsImport) obj);
case ProtoAccess.TYPE_SERVER_CHECK_FRIENDS_IMPORT /* 177 */:
return
computeServerCheckFriendsImportSize((ServerCheckFriendsImport) obj);
case ProtoAccess.TYPE_SERVER_FINISH_FRIENDS_IMPORT /* 178 */:
return
computeServerFinishFriendsImportSize((ServerFinishFriendsImport) obj);
case ProtoAccess.TYPE_SERVER_GET_CITY /* 179 */:
return computeServerGetCitySize((ServerGetCity) obj);
case ProtoAccess.TYPE_CITY /* 180 */:
return computeCitySize((City) obj);
case ProtoAccess.TYPE_SERVER_INIT_SPOTLIGHT /* 181 */:
return computeServerInitSpotlightSize((ServerInitSpotlight) obj);
case ProtoAccess.TYPE_SPOTLIGHT_COMMAND /* 182 */:
return computeSpotlightCommandSize((SpotlightCommand) obj);
case ProtoAccess.TYPE_SERVER_GET_SOCIAL_FRIENDS_CONNECTIONS /* 184 */:
return
computeServerGetSocialFriendsConnectionsSize((ServerGetSocialFriendsConnections)
obj);
case ProtoAccess.TYPE_SOCIAL_FRIENDS_CONNECTIONS_BLOCK /* 185 */:
return
computeSocialFriendsConnectionsBlockSize((SocialFriendsConnectionsBlock) obj);
case ProtoAccess.TYPE_CLIENT_RESET_TRUSTED_NETWORK /* 189 */:
return
computeClientResetTrustedNetworkSize((ClientResetTrustedNetwork) obj);
case ProtoAccess.TYPE_SERVER_CONNECT_ALL_CONTACTS /* 201 */:
return
computeServerConnectAllContactsSize((ServerConnectAllContacts) obj);
case ProtoAccess.TYPE_SERVER_IMAGE_ACTION /* 202 */:
return computeServerImageActionSize((ServerImageAction) obj);
case ProtoAccess.TYPE_CLIENT_IMAGE_ACTION /* 203 */:
return computeClientImageActionSize((ClientImageAction) obj);
case ProtoAccess.TYPE_SERVER_ANONYMOUS_CHAT /* 204 */:
return computeServerAnonymousChatSize((ServerAnonymousChat) obj);
case ProtoAccess.TYPE_CLIENT_ANONYMOUS_CHAT /* 205 */:
return computeClientAnonymousChatSize((ClientAnonymousChat) obj);
case ProtoAccess.TYPE_SERVER_ANONYMOUS_CHAT_REVEAL /* 206 */:
return
computeServerAnonymousChatRevealSize((ServerAnonymousChatReveal) obj);
case ProtoAccess.TYPE_CLIENT_GET_RATE_MESSAGE /* 208 */:
return computeClientGetRateMessageSize((ClientGetRateMessage)
obj);
case ProtoAccess.TYPE_SERVER_DELETE_ACCOUNT /* 209 */:
return computeServerDeleteAccountSize((ServerDeleteAccount) obj);
case ProtoAccess.TYPE_CLIENT_DELETE_ACCOUNT_INFO /* 210 */:
return
computeClientDeleteAccountInfoSize((ClientDeleteAccountInfo) obj);
case ProtoAccess.TYPE_SERVER_GET_CAPTCHA /* 211 */:
return computeServerGetCaptchaSize((ServerGetCaptcha) obj);
case ProtoAccess.TYPE_CLIENT_GET_CAPTCHA /* 212 */:
return computeClientGetCaptchaSize((ClientGetCaptcha) obj);
case ProtoAccess.TYPE_SERVER_CAPTCHA_ATTEMPT /* 213 */:
return computeServerCaptchaAttemptSize((ServerCaptchaAttempt)
obj);
case ProtoAccess.TYPE_CLIENT_CAPTCHA_ATTEMPT /* 214 */:
return computeClientCaptchaAttemptSize((ClientCaptchaAttempt)
obj);
case ProtoAccess.TYPE_SERVER_SEND_SLOTS /* 215 */:
return computeServerSendSlotsSize((ServerSendSlots) obj);
case ProtoAccess.TYPE_CLIENT_SEND_SLOTS /* 216 */:
return computeClientSendSlotsSize((ClientSendSlots) obj);
case ProtoAccess.TYPE_SERVER_SLOT_REQUESTS_SENT /* 217 */:
return computeServerSlotRequestsSentSize((ServerSlotRequestsSent)
obj);
case ProtoAccess.TYPE_CLIENT_MODERATED_PHOTOS /* 219 */:
return computeClientModeratedPhotosSize((ClientModeratedPhotos)
obj);
case ProtoAccess.TYPE_SERVER_GET_AWARD /* 220 */:
return computeServerGetAwardSize((ServerGetAward) obj);
case ProtoAccess.TYPE_AWARD /* 221 */:
return computeAwardSize((Award) obj);
case ProtoAccess.TYPE_CLIENT_SOCIAL_SHARING_PROVIDERS /* 222 */:
return
computeClientSocialSharingProvidersSize((ClientSocialSharingProviders) obj);
case ProtoAccess.TYPE_SERVER_GET_SOCIAL_SHARING_PROVIDERS /* 223 */:
return
computeServerGetSocialSharingProvidersSize((ServerGetSocialSharingProviders) obj);
case ProtoAccess.TYPE_CHAT_SETTINGS /* 224 */:
return computeChatSettingsSize((ChatSettings) obj);
case ProtoAccess.TYPE_SYSTEM_NOTIFICATION /* 225 */:
return computeSystemNotificationSize((SystemNotification) obj);
case ProtoAccess.TYPE_PERSON_NOTICE /* 226 */:
return computePersonNoticeSize((PersonNotice) obj);
case ProtoAccess.TYPE_SERVER_GET_EXTERNAL_PROVIDERS /* 227 */:
return
computeServerGetExternalProvidersSize((ServerGetExternalProviders) obj);
case ProtoAccess.TYPE_EXTERNAL_PROVIDERS /* 228 */:
return computeExternalProvidersSize((ExternalProviders) obj);
case ProtoAccess.TYPE_SERVER_START_EXTERNAL_PROVIDER_IMPORT /* 229 */:
return
computeServerStartExternalProviderImportSize((ServerStartExternalProviderImport)
obj);
case ProtoAccess.TYPE_EXTERNAL_PROVIDER_IMPORT_PROGRESS /* 230 */:
return
computeExternalProviderImportProgressSize((ExternalProviderImportProgress) obj);
case ProtoAccess.TYPE_SERVER_CHECK_EXTERNAL_PROVIDER_IMPORT_PROGRESS /*
231 */:
return
computeServerCheckExternalProviderImportProgressSize((ServerCheckExternalProviderIm
portProgress) obj);
case ProtoAccess.TYPE_SERVER_FINISH_EXTERNAL_PROVIDER_IMPORT /* 232 */:
return
computeServerFinishExternalProviderImportSize((ServerFinishExternalProviderImport)
obj);
case ProtoAccess.TYPE_EXTERNAL_PROVIDER_IMPORT_RESULT /* 233 */:
return
computeExternalProviderImportResultSize((ExternalProviderImportResult) obj);
case ProtoAccess.TYPE_EXTERNAL_PROVIDER_SECURITY_CREDENTIALS /* 234 */:
return
computeExternalProviderSecurityCredentialsSize((ExternalProviderSecurityCredentials
) obj);
case ProtoAccess.TYPE_SERVER_GET_PROFILE_SCORE /* 235 */:
return computeServerGetProfileScoreSize((ServerGetProfileScore)
obj);
case ProtoAccess.TYPE_PROFILE_SCORE /* 236 */:
return computeProfileScoreSize((ProfileScore) obj);
case ProtoAccess.TYPE_DELETE_CHAT_MESSAGE /* 237 */:
return computeDeleteChatMessageSize((DeleteChatMessage) obj);
case ProtoAccess.TYPE_DELETE_CHAT_MESSAGE_RESULT /* 238 */:
return
computeDeleteChatMessageResultSize((DeleteChatMessageResult) obj);
case ProtoAccess.TYPE_SERVER_UPDATE_SESSION /* 239 */:
return computeServerUpdateSessionSize((ServerUpdateSession) obj);
case ProtoAccess.TYPE_SERVER_REGISTRATION /* 240 */:
return computeServerRegistrationSize((ServerRegistration) obj);
case ProtoAccess.TYPE_SERVER_PERSON_PROFILE_EDIT_FORM /* 241 */:
return
computeServerPersonProfileEditFormSize((ServerPersonProfileEditForm) obj);
case ProtoAccess.TYPE_USER_BASIC_INFO /* 242 */:
return computeUserBasicInfoSize((UserBasicInfo) obj);
case ProtoAccess.TYPE_CLIENT_REPORT_TYPES /* 243 */:
return computeClientReportTypesSize((ClientReportTypes) obj);
case ProtoAccess.TYPE_CLIENT_FEEDBACK_LIST /* 244 */:
return computeClientFeedbackListSize((ClientFeedbackList) obj);
case ProtoAccess.TYPE_SERVER_CHANGE_PASSWORD /* 245 */:
return computeServerChangePasswordSize((ServerChangePassword)
obj);
case ProtoAccess.TYPE_CLIENT_PERSON_PROFILE_EDIT_FORM /* 246 */:
return
computeClientPersonProfileEditFormSize((ClientPersonProfileEditForm) obj);
case ProtoAccess.TYPE_CLIENT_COMMON_SETTINGS /* 247 */:
return computeClientCommonSettingsSize((ClientCommonSettings)
obj);
case ProtoAccess.TYPE_S_E_O_INFO /* 248 */:
return computeSEOInfoSize((SEOInfo) obj);
case ProtoAccess.TYPE_COMET_CONFIGURATION /* 249 */:
return computeCometConfigurationSize((CometConfiguration) obj);
case ProtoAccess.TYPE_CREDITS_FEATURE_LIST /* 250 */:
return computeCreditsFeatureListSize((CreditsFeatureList) obj);
case ProtoAccess.TYPE_SERVER_GET_USER /* 264 */:
return computeServerGetUserSize((ServerGetUser) obj);
case ProtoAccess.TYPE_SERVER_SAVE_USER /* 315 */:
return computeServerSaveUserSize((ServerSaveUser) obj);
case ProtoAccess.TYPE_TODO_SERVER_PROMO_ACCEPTED:
return computeServerPromoAccepted((ServerPromoAccepted) obj);
case ProtoAccess.TYPE_SERVER_GET_REWARDED_VIDEOS:
return computeServerGetRewardedVideosSize((ServerGetRewardedVideos)
obj);
default:
return super.computeObjectSize(obj, type);
}
}

protected void encodeObject(CodedOutputStream out, Object obj, int type) throws


IOException {
switch (type) {
case ProtoAccess.TYPE_MESSAGE /*20*/:
encodeMessage(out, (Hashtable) obj);
break;
case ProtoAccess.TYPE_SERVER_APP_STARTUP /*21*/:
encodeServerAppStartup(out, (ServerAppStartup) obj); break;
case ProtoAccess.TYPE_CLIENT_STARTUP /*22*/:
encodeClientStartup(out, (ClientStartup) obj);
break;
case ProtoAccess.TYPE_SERVER_UPDATE_LOCATION /*23*/:
encodeServerUpdateLocation(out, (ServerUpdateLocation) obj); break;
case ProtoAccess.TYPE_SERVER_LOGIN_BY_PASSWORD /*27*/:
encodeServerLoginByPassword(out, (ServerLoginByPassword) obj); break;
case ProtoAccess.TYPE_FORM_FAILURE /*28*/:
encodeFormFailure(out, (FormFailure) obj); break;
case /*MessagesFragment.NUM_MSGS_IN_A_BLOCK*/ 30:
encodeAppSettings(out, (AppSettings) obj);
break;
case ProtoAccess.TYPE_TUPLE /*33*/:
encodeTuple(out, (Tuple) obj);
break;
case /*BinAccess.TYPE_APPLICATIONFEATURE*/ 34:
encodeModifiedObject(out, (ModifiedObject) obj);
break;
case ProtoAccess.TYPE_PERSON /*36*/:
encodePerson(out, (Person) obj);
break;
case ProtoAccess.TYPE_PERSON_PROFILE /*37*/:
encodePersonProfile(out, (PersonProfile) obj);
break;
case ProtoAccess.TYPE_PERSON_STATUS /*38*/:
encodePersonStatus(out, (PersonStatus) obj);
break;
case ProtoAccess.TYPE_CLIENT_PICTURE /*39*/:
encodeClientPicture(out, (ClientPicture) obj);
break;
case ProtoAccess.TYPE_SERVER_FOLDER_ACTION /*43*/:
encodeServerFolderAction(out, (ServerFolderAction) obj);
break;
case ProtoAccess.TYPE_SERVER_SEND_USER_REPORT /*44*/:
encodeServerSendUserReport(out, (ServerSendUserReport) obj);
break;
case ProtoAccess.TYPE_SERVER_FEEDBACK_FORM /*45*/:
encodeServerFeedbackForm(out, (ServerFeedbackForm) obj);
break;
case ProtoAccess.TYPE_SEARCH_SETTINGS /*46*/:
encodeSearchSettings(out, (SearchSettings) obj);
break;
case ProtoAccess.TYPE_SERVER_ENCOUNTERS_VOTE /*47*/:
encodeServerEncountersVote(out, (ServerEncountersVote) obj); break;
case ProtoAccess.TYPE_SERVER_GET_ENCOUNTERS /*49*/:
encodeServerGetEncounters(out, (ServerGetEncounters) obj); break;
case /*Request.MAXIMUM_BATCH_SIZE*/ 50:
encodeNoMoreSearchResults(out, (NoMoreSearchResults) obj);
break;
case ProtoAccess.TYPE_CLIENT_ENCOUNTERS /*51*/:
encodeClientEncounters(out, (ClientEncounters) obj);
break;
case ProtoAccess.TYPE_ALBUM /*52*/:
encodeAlbum(out, (Album) obj);
break;
case ProtoAccess.TYPE_SERVER_REQUEST_ALBUM_ACCESS /*53*/:
encodeServerRequestAlbumAccess(out, (ServerRequestAlbumAccess) obj);
break;
case ProtoAccess.TYPE_SERVER_UPLOAD_PHOTO /*54*/:
encodeServerUploadPhoto(out, (ServerUploadPhoto) obj);
break;
case ProtoAccess.TYPE_CHAT_INSTANCE /*61*/:
encodeChatInstance(out, (ChatInstance) obj);
break;
case ProtoAccess.TYPE_CHAT_MESSAGE /*62*/:
encodeChatMessage(out, (ChatMessage) obj); return;
case ProtoAccess.TYPE_CHAT_IS_WRITING /*63*/:
encodeChatIsWriting(out, (ChatIsWriting) obj);
break;
case ProtoAccess.TYPE_SERVER_REQUEST_PICTURE /*65*/:
encodeServerRequestPicture(out, (Hashtable) obj);
break;
case ProtoAccess.TYPE_CLIENT_LOGIN_SUCCESS /*66*/:
encodeClientLoginSuccess(out, (ClientLoginSuccess) obj);
break;
case ProtoAccess.TYPE_PHONEBOOK_CONTACT /*67*/:
encodePhonebookContact(out, (PhonebookContact) obj);
break;
case ProtoAccess.TYPE_USER_REPORT_TYPE /*69*/:
encodeUserReportType(out, (UserReportType) obj);
break;
case ProtoAccess.TYPE_CLIENT_OPEN_CHAT /*70*/:
encodeClientOpenChat(out, (ClientOpenChat) obj);
break;
case ProtoAccess.TYPE_SERVER_OPEN_CHAT /*73*/:
encodeServerOpenChat(out, (ServerOpenChat) obj);
break;
case ProtoAccess.TYPE_SERVER_ERROR_MESSAGE /*74*/:
encodeServerErrorMessage(out, (ServerErrorMessage) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_ALBUM /*78*/:
encodeServerGetAlbum(out, (ServerGetAlbum) obj);
break;
case ProtoAccess.TYPE_SAVE_PROFILE /*80*/:
encodeSaveProfile(out, (SaveProfile) obj); break;
case ProtoAccess.TYPE_CLIENT_VOTE_RESPONSE /*81*/:
encodeClientVoteResponse(out, (ClientVoteResponse) obj);
break;
case ProtoAccess.TYPE_SEARCH_SETTINGS_FAILURE /*82*/:
encodeSearchSettingsFailure(out, (SearchSettingsFailure) obj);
break;
case ProtoAccess.TYPE_SEARCH_SETTINGS_CONTEXT /*83*/:
encodeSearchSettingsContext(out, (SearchSettingsContext) obj);
break;
case ProtoAccess.TYPE_APPLICATION_FEATURE /*87*/:
encodeApplicationFeature(out, (ApplicationFeature) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_PERSON_PROFILE /*88*/:
encodeServerGetPersonProfile(out, (ServerGetPersonProfile) obj); break;
case ProtoAccess.TYPE_PROFILE_VISITING_SOURCE /*89*/:
encodeProfileVisitingSource(out, (ProfileVisitingSource) obj); break;
case ProtoAccess.TYPE_CHAT_MESSAGE_RECEIVED /*90*/:
encodeChatMessageReceived(out, (ChatMessageReceived) obj);
break;
case ProtoAccess.TYPE_FEATURE_PRODUCT_LIST /*91*/:
encodeFeatureProductList(out, (FeatureProductList) obj);
break;
case ProtoAccess.TYPE_PURCHASE_RECEIPT /*92*/:
encodePurchaseReceipt(out, (PurchaseReceipt) obj);
break;
case ProtoAccess.TYPE_CLIENT_UPLOAD_PHOTO /*93*/:
encodeClientUploadPhoto(out, (ClientUploadPhoto) obj);
break;
case ProtoAccess.TYPE_FOLDER_REQUEST /*94*/:
encodeFolderRequest(out, (FolderRequest) obj);
break;
case ProtoAccess.TYPE_CLIENT_NOTIFICATION /*95*/:
encodeClientNotification(out, (ClientNotification) obj);
break;
case ProtoAccess.TYPE_PRODUCT_REQUEST /*96*/:
encodeProductRequest(out, (ProductRequest) obj);
break;
case ProtoAccess.TYPE_PURCHASE_TRANSACTION_SETUP /*97*/:
encodePurchaseTransactionSetup(out, (PurchaseTransactionSetup) obj);
break;
case ProtoAccess.TYPE_PURCHASE_TRANSACTION /*98*/:
encodePurchaseTransaction(out, (PurchaseTransaction) obj);
break;
case ProtoAccess.TYPE_PURCHASE_TRANSACTION_FAILED /*99*/:
encodePurchaseTransactionFailed(out, (PurchaseTransactionFailed) obj);
break;
case /*LocationRequest.PRIORITY_LOW_POWER*/ 104:
encodeClientPurchaseReceipt(out, (ClientPurchaseReceipt) obj);
break;
case ProtoAccess.TYPE_PROMO_BLOCK /*106*/:
encodePromoBlock(out, (PromoBlock) obj);
break;
case ProtoAccess.TYPE_CLIENT_USER_DATA_INCOMPLETE /*107*/:
encodeClientUserDataIncomplete(out, (ClientUserDataIncomplete) obj);
break;
case ProtoAccess.TYPE_PROVIDER_PRODUCT_ID /*109*/:
encodeProviderProductId(out, (ProviderProductId) obj);
break;
case ProtoAccess.TYPE_PRODUCT_TERMS /*110*/:
encodeProductTerms(out, (ProductTerms) obj);
break;
case ProtoAccess.TYPE_PAYMENT_SETTINGS /*111*/:
encodePaymentSettings(out, (PaymentSettings) obj);
break;
case ProtoAccess.TYPE_FEATURE_PRE_PURCHASE_INFO /*113*/:
encodeFeaturePrePurchaseInfo(out, (FeaturePrePurchaseInfo) obj);
break;
case ProtoAccess.TYPE_CITIES /*114*/:
encodeCities(out, (Cities) obj);
break;
case ProtoAccess.TYPE_COUNTRY /*117*/:
encodeCountry(out, (Country) obj);
break;
case ProtoAccess.TYPE_PHONEBOOK_CONTACTLIST /*120*/:
encodePhonebookContactlist(out, (PhonebookContactlist) obj);
break;
case ProtoAccess.TYPE_PHONEBOOK_CONTACT_DETAIL /*121*/:
encodePhonebookContactDetail(out, (PhonebookContactDetail) obj);
break;
case ProtoAccess.TYPE_GROUP /*126*/:
encodeGroup(out, (Group) obj);
break;
case ProtoAccess.TYPE_INTEREST /*127*/:
encodeInterest(out, (Interest) obj);
break;
case /*Cast.MAX_NAMESPACE_LENGTH*/ 128:
encodeInterestsGroups(out, (InterestsGroups) obj);
break;
case ProtoAccess.TYPE_CLIENT_INTERESTS /*129*/:
encodeClientInterests(out, (ClientInterests) obj);
break;
case ProtoAccess.TYPE_SERVER_INTERESTS_GET /*130*/:
encodeServerInterestsGet(out, (ServerInterestsGet) obj); break;
case ProtoAccess.TYPE_INTERESTS_UPDATE /*131*/:
encodeInterestsUpdate(out, (InterestsUpdate) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_USER_LIST /*134*/:
encodeServerGetUserList(out, (ServerGetUserList) obj); break;
case ProtoAccess.TYPE_CLIENT_USER_LIST /*135*/:
encodeClientUserList(out, (ClientUserList) obj);
break;
case ProtoAccess.TYPE_CLIENT_CHANGE_HOST /*136*/:
encodeClientChangeHost(out, (ClientChangeHost) obj);
break;
case ProtoAccess.TYPE_TIW_IDEAS /*137*/:
encodeTiwIdeas(out, (TiwIdeas) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_TIW_IDEAS /*138*/:
encodeServerGetTiwIdeas(out, (ServerGetTiwIdeas) obj);
break;
case ProtoAccess.TYPE_SERVER_REQUEST_ALBUM_ACCESS_LEVEL /*139*/:
encodeServerRequestAlbumAccessLevel(out,
(ServerRequestAlbumAccessLevel) obj);
break;
case ProtoAccess.TYPE_ALBUM_ACCESS /*140*/:
encodeAlbumAccess(out, (AlbumAccess) obj);
break;
case ProtoAccess.TYPE_SPP_PURCHASE_STATISTIC /*141*/:
encodeSppPurchaseStatistic(out, (SppPurchaseStatistic) obj);
break;
case ProtoAccess.TYPE_SERVER_SECTION_USER_ACTION /*146*/:
encodeServerSectionUserAction(out, (ServerSectionUserAction) obj);
break;
case ProtoAccess.TYPE_SERVER_USER_VERIFIED_GET /*147*/:
encodeServerUserVerifiedGet(out, (ServerUserVerifiedGet) obj);
break;
case ProtoAccess.TYPE_CLIENT_USER_VERIFIED_GET /*148*/:
encodeClientUserVerifiedGet(out, (ClientUserVerifiedGet) obj);
break;
case ProtoAccess.TYPE_SERVER_USER_VERIFY /*149*/:
encodeServerUserVerify(out, (ServerUserVerify) obj); break;
case ProtoAccess.TYPE_CLIENT_USER_VERIFY /*150*/:
encodeClientUserVerify(out, (ClientUserVerify) obj);
break;
case ProtoAccess.TYPE_SERVER_USER_REMOVE_VERIFY /*151*/:
encodeServerUserRemoveVerify(out, (ServerUserRemoveVerify) obj); break;
case ProtoAccess.TYPE_CLIENT_USER_REMOVE_VERIFY /*152*/:
encodeClientUserRemoveVerify(out, (ClientUserRemoveVerify) obj); break;
case ProtoAccess.TYPE_SERVER_APP_STATS /*158*/:
encodeServerAppStats(out, (ServerAppStats) obj); break;
case ProtoAccess.TYPE_SERVER_GET_CHAT_MESSAGES /*159*/:
encodeServerGetChatMessages(out, (ServerGetChatMessages) obj);
break;
case ProtoAccess.TYPE_CLIENT_CHAT_MESSAGES /*160*/:
encodeClientChatMessages(out, (ClientChatMessages) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_PHOTOS_TO_RATE /*166*/:
encodeServerGetPhotosToRate(out, (ServerGetPhotosToRate) obj);
break;
case ProtoAccess.TYPE_CLIENT_GET_PHOTOS_TO_RATE /*167*/:
encodeClientGetPhotosToRate(out, (ClientGetPhotosToRate) obj);
break;
case ProtoAccess.TYPE_SERVER_RATE_PHOTO /*168*/:
encodeServerRatePhoto(out, (ServerRatePhoto) obj);
break;
case ProtoAccess.TYPE_CLIENT_RATE_PHOTO_SUCCESS /*169*/:
encodeClientRatePhotoSuccess(out, (ClientRatePhotoSuccess) obj);
break;
case ProtoAccess.TYPE_CLIENT_GET_PHOTO_RATING_CONFIGURATION /*170*/:
encodeClientGetPhotoRatingConfiguration(out,
(ClientGetPhotoRatingConfiguration) obj);
break;
case ProtoAccess.TYPE_CLIENT_GET_OWN_PHOTO_RATING /*171*/:
encodeClientGetOwnPhotoRating(out, (ClientGetOwnPhotoRating) obj);
break;
case ProtoAccess.TYPE_CLIENT_SPOTLIGHT_META_DATA /*172*/:
encodeClientSpotlightMetaData(out, (ClientSpotlightMetaData) obj);
break;
case ProtoAccess.TYPE_SERVER_START_FRIENDS_IMPORT /*175*/:
encodeServerStartFriendsImport(out, (ServerStartFriendsImport) obj);
break;
case ProtoAccess.TYPE_CLIENT_FRIENDS_IMPORT /*176*/:
encodeClientFriendsImport(out, (ClientFriendsImport) obj);
break;
case ProtoAccess.TYPE_SERVER_CHECK_FRIENDS_IMPORT /*177*/:
encodeServerCheckFriendsImport(out, (ServerCheckFriendsImport) obj);
break;
case ProtoAccess.TYPE_SERVER_FINISH_FRIENDS_IMPORT /*178*/:
encodeServerFinishFriendsImport(out, (ServerFinishFriendsImport) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_CITY /*179*/:
encodeServerGetCity(out, (ServerGetCity) obj);
break;
case ProtoAccess.TYPE_CITY /*180*/:
encodeCity(out, (City) obj); break;
case ProtoAccess.TYPE_SERVER_INIT_SPOTLIGHT /*181*/:
encodeServerInitSpotlight(out, (ServerInitSpotlight) obj);
break;
case ProtoAccess.TYPE_SPOTLIGHT_COMMAND /*182*/:
encodeSpotlightCommand(out, (SpotlightCommand) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_SOCIAL_FRIENDS_CONNECTIONS /*184*/:
encodeServerGetSocialFriendsConnections(out,
(ServerGetSocialFriendsConnections) obj);
break;
case ProtoAccess.TYPE_SOCIAL_FRIENDS_CONNECTIONS_BLOCK /*185*/:
encodeSocialFriendsConnectionsBlock(out,
(SocialFriendsConnectionsBlock) obj);
break;
case ProtoAccess.TYPE_CLIENT_RESET_TRUSTED_NETWORK /*189*/:
encodeClientResetTrustedNetwork(out, (ClientResetTrustedNetwork) obj);
break;
case ProtoAccess.TYPE_SERVER_CONNECT_ALL_CONTACTS /*201*/:
encodeServerConnectAllContacts(out, (ServerConnectAllContacts) obj);
break;
case ProtoAccess.TYPE_SERVER_IMAGE_ACTION /*202*/:
encodeServerImageAction(out, (ServerImageAction) obj);
break;
case ProtoAccess.TYPE_CLIENT_IMAGE_ACTION /*203*/:
encodeClientImageAction(out, (ClientImageAction) obj);
break;
case ProtoAccess.TYPE_SERVER_ANONYMOUS_CHAT /*204*/:
encodeServerAnonymousChat(out, (ServerAnonymousChat) obj);
break;
case ProtoAccess.TYPE_CLIENT_ANONYMOUS_CHAT /*205*/:
encodeClientAnonymousChat(out, (ClientAnonymousChat) obj);
break;
case ProtoAccess.TYPE_SERVER_ANONYMOUS_CHAT_REVEAL /*206*/:
encodeServerAnonymousChatReveal(out, (ServerAnonymousChatReveal) obj);
break;
case ProtoAccess.TYPE_CLIENT_GET_RATE_MESSAGE /*208*/:
encodeClientGetRateMessage(out, (ClientGetRateMessage) obj);
break;
case ProtoAccess.TYPE_SERVER_DELETE_ACCOUNT /*209*/:
encodeServerDeleteAccount(out, (ServerDeleteAccount) obj); break;
case ProtoAccess.TYPE_CLIENT_DELETE_ACCOUNT_INFO /*210*/:
encodeClientDeleteAccountInfo(out, (ClientDeleteAccountInfo) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_CAPTCHA /*211*/:
encodeServerGetCaptcha(out, (ServerGetCaptcha) obj); break;
case ProtoAccess.TYPE_CLIENT_GET_CAPTCHA /*212*/:
encodeClientGetCaptcha(out, (ClientGetCaptcha) obj);
break;
case ProtoAccess.TYPE_SERVER_CAPTCHA_ATTEMPT /*213*/:
encodeServerCaptchaAttempt(out, (ServerCaptchaAttempt) obj); break;
case ProtoAccess.TYPE_CLIENT_CAPTCHA_ATTEMPT /*214*/:
encodeClientCaptchaAttempt(out, (ClientCaptchaAttempt) obj);
break;
case ProtoAccess.TYPE_SERVER_SEND_SLOTS /*215*/:
encodeServerSendSlots(out, (ServerSendSlots) obj);
break;
case ProtoAccess.TYPE_CLIENT_SEND_SLOTS /*216*/:
encodeClientSendSlots(out, (ClientSendSlots) obj);
break;
case ProtoAccess.TYPE_SERVER_SLOT_REQUESTS_SENT /*217*/:
encodeServerSlotRequestsSent(out, (ServerSlotRequestsSent) obj);
break;
case ProtoAccess.TYPE_CLIENT_MODERATED_PHOTOS /*219*/:
encodeClientModeratedPhotos(out, (ClientModeratedPhotos) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_AWARD /*220*/:
encodeServerGetAward(out, (ServerGetAward) obj); break;
case ProtoAccess.TYPE_AWARD /*221*/:
encodeAward(out, (Award) obj);
break;
case ProtoAccess.TYPE_CLIENT_SOCIAL_SHARING_PROVIDERS /*222*/:
encodeClientSocialSharingProviders(out, (ClientSocialSharingProviders)
obj);
break;
case ProtoAccess.TYPE_SERVER_GET_SOCIAL_SHARING_PROVIDERS /*223*/:
encodeServerGetSocialSharingProviders(out,
(ServerGetSocialSharingProviders) obj); break;
case ProtoAccess.TYPE_CHAT_SETTINGS /*224*/:
encodeChatSettings(out, (ChatSettings) obj);
break;
case ProtoAccess.TYPE_SYSTEM_NOTIFICATION /*225*/:
encodeSystemNotification(out, (SystemNotification) obj);
break;
case ProtoAccess.TYPE_PERSON_NOTICE /*226*/:
encodePersonNotice(out, (PersonNotice) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_EXTERNAL_PROVIDERS /*227*/:
encodeServerGetExternalProviders(out, (ServerGetExternalProviders)
obj); break;
case ProtoAccess.TYPE_EXTERNAL_PROVIDERS /*228*/:
encodeExternalProviders(out, (ExternalProviders) obj);
break;
case ProtoAccess.TYPE_SERVER_START_EXTERNAL_PROVIDER_IMPORT /*229*/:
encodeServerStartExternalProviderImport(out,
(ServerStartExternalProviderImport) obj);
break;
case ProtoAccess.TYPE_EXTERNAL_PROVIDER_IMPORT_PROGRESS /*230*/:
encodeExternalProviderImportProgress(out,
(ExternalProviderImportProgress) obj);
break;
case ProtoAccess.TYPE_SERVER_CHECK_EXTERNAL_PROVIDER_IMPORT_PROGRESS
/*231*/:
encodeServerCheckExternalProviderImportProgress(out,
(ServerCheckExternalProviderImportProgress) obj);
break;
case ProtoAccess.TYPE_SERVER_FINISH_EXTERNAL_PROVIDER_IMPORT /*232*/:
encodeServerFinishExternalProviderImport(out,
(ServerFinishExternalProviderImport) obj);
break;
case ProtoAccess.TYPE_EXTERNAL_PROVIDER_IMPORT_RESULT /*233*/:
encodeExternalProviderImportResult(out, (ExternalProviderImportResult)
obj);
break;
case ProtoAccess.TYPE_EXTERNAL_PROVIDER_SECURITY_CREDENTIALS /*234*/:
encodeExternalProviderSecurityCredentials(out,
(ExternalProviderSecurityCredentials) obj);
break;
case ProtoAccess.TYPE_SERVER_GET_PROFILE_SCORE /*235*/:
encodeServerGetProfileScore(out, (ServerGetProfileScore) obj);
break;
case ProtoAccess.TYPE_PROFILE_SCORE /*236*/:
encodeProfileScore(out, (ProfileScore) obj);
break;
case ProtoAccess.TYPE_DELETE_CHAT_MESSAGE /*237*/:
encodeDeleteChatMessage(out, (DeleteChatMessage) obj);
break;
case ProtoAccess.TYPE_DELETE_CHAT_MESSAGE_RESULT /*238*/:
encodeDeleteChatMessageResult(out, (DeleteChatMessageResult) obj);
break;
case ProtoAccess.TYPE_SERVER_UPDATE_SESSION /*239*/:
encodeServerUpdateSession(out, (ServerUpdateSession) obj);
break;
case ProtoAccess.TYPE_SERVER_REGISTRATION /*240*/:
encodeServerRegistration(out, (ServerRegistration) obj);
break;
case ProtoAccess.TYPE_SERVER_PERSON_PROFILE_EDIT_FORM /*241*/:
encodeServerPersonProfileEditForm(out, (ServerPersonProfileEditForm)
obj);
break;
case ProtoAccess.TYPE_USER_BASIC_INFO /*242*/:
encodeUserBasicInfo(out, (UserBasicInfo) obj);
break;
case ProtoAccess.TYPE_CLIENT_REPORT_TYPES /*243*/:
encodeClientReportTypes(out, (ClientReportTypes) obj);
break;
case ProtoAccess.TYPE_CLIENT_FEEDBACK_LIST /*244*/:
encodeClientFeedbackList(out, (ClientFeedbackList) obj);
break;
case ProtoAccess.TYPE_SERVER_CHANGE_PASSWORD /*245*/:
encodeServerChangePassword(out, (ServerChangePassword) obj);
break;
case ProtoAccess.TYPE_CLIENT_PERSON_PROFILE_EDIT_FORM /*246*/:
encodeClientPersonProfileEditForm(out, (ClientPersonProfileEditForm)
obj);
break;
case ProtoAccess.TYPE_CLIENT_COMMON_SETTINGS /*247*/:
encodeClientCommonSettings(out, (ClientCommonSettings) obj);
break;
case ProtoAccess.TYPE_S_E_O_INFO /*248*/:
encodeSEOInfo(out, (SEOInfo) obj);
break;
case ProtoAccess.TYPE_COMET_CONFIGURATION /*249*/:
encodeCometConfiguration(out, (CometConfiguration) obj);
break;
case ProtoAccess.TYPE_CREDITS_FEATURE_LIST /*250*/:
encodeCreditsFeatureList(out, (CreditsFeatureList) obj);
break;

case ProtoAccess.TYPE_SERVER_GET_USER /*264*/:


encodeServerGetUser(out, (ServerGetUser) obj); break;
case ProtoAccess.TYPE_SERVER_SAVE_USER /*315*/:
encodeServerSaveUser(out, (ServerSaveUser) obj); break;

case ProtoAccess.TYPE_TODO_SERVER_PROMO_ACCEPTED:
encodeServerPromoAccepted(out, (ServerPromoAccepted) obj); break;
case ProtoAccess.TYPE_SERVER_GET_REWARDED_VIDEOS:
encodeServerGetRewardedVideos(out, (ServerGetRewardedVideos) obj);
break;
default:
super.encodeObject(out, obj, type);
}
}

private int computeServerPromoAccepted(ServerPromoAccepted object) {


int size = 0;
String valueVal = object.value;
if (valueVal != null) {
size = 0 + computeStringSize(1, valueVal);
}
return size;
}

private int computeABTestSize(ABTest object) {


int size = 0;
String testIdVal = object.testId;
if (testIdVal != null) {
size = 0 + computeStringSize(1, testIdVal);
}
String variationIdVal = object.variationId;
if (variationIdVal != null) {
return size + computeStringSize(2, variationIdVal);
}
return size;
}

private int computeABTestingSettingsSize(ABTestingSettings object) {


int size = 0;
Vector testsList = object.tests;
if (testsList != null) {
for (int c = 0; c < testsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeABTestSize((ABTest) testsList.elementAt(c)));
}
}
return size;
}

private int computeAlbumSize(Album object) {


int size = 0 + computeStringSize(1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
dateModifiedVal.longValue());
}
size = (size + computeStringSize(3, object.name)) + computeStringSize(4,
object.ownerId);
String previewImageIdVal = object.previewImageId;
if (previewImageIdVal != null) {
size += computeStringSize(5, previewImageIdVal);
}
Integer accessTypeVal = object.accessType;
if (accessTypeVal != null) {
size += CodedOutputStream.computeInt32Size(8,
accessTypeVal.intValue());
}
size = (size + CodedOutputStream.computeBoolSize(9, object.accessable)) +
CodedOutputStream.computeBoolSize(10, object.adult);
Boolean requiresModerationVal = object.requiresModeration;
if (requiresModerationVal != null) {
size += CodedOutputStream.computeBoolSize(11,
requiresModerationVal.booleanValue());
}
Boolean allowEditVal = object.allowEdit;
if (allowEditVal != null) {
size += CodedOutputStream.computeBoolSize(12,
allowEditVal.booleanValue());
}
Integer countOfPhotosVal = object.countOfPhotos;
if (countOfPhotosVal != null) {
size += CodedOutputStream.computeInt32Size(13,
countOfPhotosVal.intValue());
}
String instructionVal = object.instruction;
if (instructionVal != null) {
size += computeStringSize(14, instructionVal);
}
Boolean isUploadForbiddenVal = object.isUploadForbidden;
if (isUploadForbiddenVal != null) {
size += CodedOutputStream.computeBoolSize(15,
isUploadForbiddenVal.booleanValue());
}
Vector photosList = object.photos;
if (photosList != null) {
for (int c = 0; c < photosList.size(); c++) {
size += CodedOutputStream.computeBytesSize(18,
computePhotoSize((Photo) photosList.elementAt(c)));
}
}
return size;
}

private int computeAlbumAccessSize(AlbumAccess object) {


int size = 0 + CodedOutputStream.computeInt32Size(3,
object.level.getNumber());
String errorMessageVal = object.errorMessage;
if (errorMessageVal != null) {
size += computeStringSize(4, errorMessageVal);
}
String errorTitleVal = object.errorTitle;
if (errorTitleVal != null) {
return size + computeStringSize(5, errorTitleVal);
}
return size;
}

private int computeAndroidWifiSize(AndroidWifi object) {


return ((0 + computeStringSize(1, object.name)) + computeStringSize(2,
object.ssid)) + CodedOutputStream.computeInt32Size(3, object.signalStrength);
}

private int computeAnonymousChatSettingsSize(AnonymousChatSettings object) {


int size = 0;
Integer revealBlockSecondsVal = object.revealBlockSeconds;
if (revealBlockSecondsVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(4,
revealBlockSecondsVal.intValue());
}
String bigPhotoIdVal = object.bigPhotoId;
if (bigPhotoIdVal != null) {
size += computeStringSize(5, bigPhotoIdVal);
}
Integer revealBlockSecondsTotalVal = object.revealBlockSecondsTotal;
if (revealBlockSecondsTotalVal != null) {
size += CodedOutputStream.computeInt32Size(6,
revealBlockSecondsTotalVal.intValue());
}
Integer timeToVoteSecondsVal = object.timeToVoteSeconds;
if (timeToVoteSecondsVal != null) {
return size + CodedOutputStream.computeInt32Size(7,
timeToVoteSecondsVal.intValue());
}
return size;
}

private int computeAppSettingsSize(AppSettings object) {


int size = 0;
Integer interfaceLanguageVal = object.interfaceLanguage;
if (interfaceLanguageVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
interfaceLanguageVal.intValue());
}
Boolean interfaceSoundVal = object.interfaceSound;
if (interfaceSoundVal != null) {
size += CodedOutputStream.computeBoolSize(2,
interfaceSoundVal.booleanValue());
}
Boolean interfaceMetricVal = object.interfaceMetric;
if (interfaceMetricVal != null) {
size += CodedOutputStream.computeBoolSize(3,
interfaceMetricVal.booleanValue());
}
Boolean notifyMessagesVal = object.notifyMessages;
if (notifyMessagesVal != null) {
size += CodedOutputStream.computeBoolSize(4,
notifyMessagesVal.booleanValue());
}
Boolean notifyVisitorsVal = object.notifyVisitors;
if (notifyVisitorsVal != null) {
size += CodedOutputStream.computeBoolSize(5,
notifyVisitorsVal.booleanValue());
}
Boolean notifyWantYouVal = object.notifyWantYou;
if (notifyWantYouVal != null) {
size += CodedOutputStream.computeBoolSize(6,
notifyWantYouVal.booleanValue());
}
Boolean notifyMutualVal = object.notifyMutual;
if (notifyMutualVal != null) {
size += CodedOutputStream.computeBoolSize(7,
notifyMutualVal.booleanValue());
}
Boolean privacyShowDistanceVal = object.privacyShowDistance;
if (privacyShowDistanceVal != null) {
size += CodedOutputStream.computeBoolSize(8,
privacyShowDistanceVal.booleanValue());
}
Boolean notifyAlertsVal = object.notifyAlerts;
if (notifyAlertsVal != null) {
size += CodedOutputStream.computeBoolSize(10,
notifyAlertsVal.booleanValue());
}
Boolean privacyShowOnlineStatusVal = object.privacyShowOnlineStatus;
if (privacyShowOnlineStatusVal != null) {
size += CodedOutputStream.computeBoolSize(11,
privacyShowOnlineStatusVal.booleanValue());
}
Boolean emailMessagesVal = object.emailMessages;
if (emailMessagesVal != null) {
size += CodedOutputStream.computeBoolSize(12,
emailMessagesVal.booleanValue());
}
Boolean emailGiftsVal = object.emailGifts;
if (emailGiftsVal != null) {
size += CodedOutputStream.computeBoolSize(13,
emailGiftsVal.booleanValue());
}
Boolean emailAlertsVal = object.emailAlerts;
if (emailAlertsVal != null) {
size += CodedOutputStream.computeBoolSize(14,
emailAlertsVal.booleanValue());
}
Boolean emailNewsVal = object.emailNews;
if (emailNewsVal != null) {
size += CodedOutputStream.computeBoolSize(15,
emailNewsVal.booleanValue());
}
Boolean emailMatchesVal = object.emailMatches;
if (emailMatchesVal != null) {
size += CodedOutputStream.computeBoolSize(16,
emailMatchesVal.booleanValue());
}
Boolean emailVisitorsVal = object.emailVisitors;
if (emailVisitorsVal != null) {
size += CodedOutputStream.computeBoolSize(17,
emailVisitorsVal.booleanValue());
}
Boolean notifyPhotoratingsVal = object.notifyPhotoratings;
if (notifyPhotoratingsVal != null) {
size += CodedOutputStream.computeBoolSize(18,
notifyPhotoratingsVal.booleanValue());
}
Boolean emailPhotoratingsVal = object.emailPhotoratings;
if (emailPhotoratingsVal != null) {
size += CodedOutputStream.computeBoolSize(19,
emailPhotoratingsVal.booleanValue());
}
Boolean notifyFavoritesVal = object.notifyFavorites;
if (notifyFavoritesVal != null) {
size += CodedOutputStream.computeBoolSize(20,
notifyFavoritesVal.booleanValue());
}
Boolean emailFavoritesVal = object.emailFavorites;
if (emailFavoritesVal != null) {
size += CodedOutputStream.computeBoolSize(21,
emailFavoritesVal.booleanValue());
}
Boolean verificationHideDetailsVal = object.verificationHideDetails;
if (verificationHideDetailsVal != null) {
size += CodedOutputStream.computeBoolSize(22,
verificationHideDetailsVal.booleanValue());
}
Boolean verificationOnlyVerifiedMessagesVal =
object.verificationOnlyVerifiedMessages;
if (verificationOnlyVerifiedMessagesVal != null) {
size += CodedOutputStream.computeBoolSize(23,
verificationOnlyVerifiedMessagesVal.booleanValue());
}
Boolean useSecureConnectionVal = object.useSecureConnection;
if (useSecureConnectionVal != null) {
size += CodedOutputStream.computeBoolSize(24,
useSecureConnectionVal.booleanValue());
}
Boolean onlySocialNetworkChatVal = object.onlySocialNetworkChat;
if (onlySocialNetworkChatVal != null) {
size += CodedOutputStream.computeBoolSize(25,
onlySocialNetworkChatVal.booleanValue());
}
String confirmationTextForResetNtVal = object.confirmationTextForResetNt;
if (confirmationTextForResetNtVal != null) {
size += computeStringSize(26, confirmationTextForResetNtVal);
}
Boolean sharingCelebrityAndFriendsInFacebookVal =
object.sharingCelebrityAndFriendsInFacebook;
if (sharingCelebrityAndFriendsInFacebookVal != null) {
size += CodedOutputStream.computeBoolSize(27,
sharingCelebrityAndFriendsInFacebookVal.booleanValue());
}
Boolean sharingCelebrityAndFriendsInTwitterVal =
object.sharingCelebrityAndFriendsInTwitter;
if (sharingCelebrityAndFriendsInTwitterVal != null) {
size += CodedOutputStream.computeBoolSize(28,
sharingCelebrityAndFriendsInTwitterVal.booleanValue());
}
Boolean privacyShowInSearchResultsVal = object.privacyShowInSearchResults;
if (privacyShowInSearchResultsVal != null) {
size += CodedOutputStream.computeBoolSize(29,
privacyShowInSearchResultsVal.booleanValue());
}
Boolean privacyShowInPublicSearchVal = object.privacyShowInPublicSearch;
if (privacyShowInPublicSearchVal != null) {
return size + CodedOutputStream.computeBoolSize(30,
privacyShowInPublicSearchVal.booleanValue());
}
return size;
}

private int computeApplicationFeatureSize(ApplicationFeature object) {


int size = 0;
FeatureType featureVal = object.feature;
if (featureVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
featureVal.getNumber());
}
size += CodedOutputStream.computeBoolSize(2, object.enabled);
ActionType requiredActionVal = object.requiredAction;
if (requiredActionVal != null) {
size += CodedOutputStream.computeInt32Size(3,
requiredActionVal.getNumber());
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
size += computeStringSize(4, displayMessageVal);
}
String displayTitleVal = object.displayTitle;
if (displayTitleVal != null) {
size += computeStringSize(5, displayTitleVal);
}
String displayActionVal = object.displayAction;
if (displayActionVal != null) {
size += computeStringSize(6, displayActionVal);
}
PaymentProductType productTypeVal = object.productType;
if (productTypeVal != null) {
size += CodedOutputStream.computeInt32Size(7,
productTypeVal.getNumber());
}
Vector displayImagesList = object.displayImages;
if (displayImagesList != null) {
for (int c = 0; c < displayImagesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(8,
computeApplicationFeaturePictureSize((ApplicationFeaturePicture)
displayImagesList.elementAt(c)));
}
}
String blockReasonIdVal = object.blockReasonId;
if (blockReasonIdVal != null) {
return size + computeStringSize(9, blockReasonIdVal);
}
return size;
}

private int computeApplicationFeaturePictureSize(ApplicationFeaturePicture


object) {
int size = 0 + computeStringSize(1, object.displayImages);
OnlineStatus onlineStatusVal = object.onlineStatus;
if (onlineStatusVal != null) {
return size + CodedOutputStream.computeInt32Size(2,
onlineStatusVal.getNumber());
}
return size;
}

private int computeAwardSize(Award object) {


int c;
int size = 0;
String awardIdVal = object.awardId;
if (awardIdVal != null) {
size = 0 + computeStringSize(1, awardIdVal);
}
PromoBlock promoBlockVal = object.promoBlock;
if (promoBlockVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computePromoBlockSize(promoBlockVal));
}
Vector awardImagesList = object.awardImages;
if (awardImagesList != null) {
for (c = 0; c < awardImagesList.size(); c++) {
size += computeStringSize(3, (String)
awardImagesList.elementAt(c));
}
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeSocialSharingProviderSize((SocialSharingProvider)
sharingProvidersList.elementAt(c)));
}
}
String thumbnailVal = object.thumbnail;
if (thumbnailVal != null) {
size += computeStringSize(5, thumbnailVal);
}
String titleVal = object.title;
if (titleVal != null) {
size += computeStringSize(6, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(7, descriptionVal);
}
Integer progressVal = object.progress;
if (progressVal != null) {
size += CodedOutputStream.computeInt32Size(8, progressVal.intValue());
}
Boolean sharedVal = object.shared;
if (sharedVal != null) {
size += CodedOutputStream.computeBoolSize(9, sharedVal.booleanValue());
}
Boolean secretAwardVal = object.secretAward;
if (secretAwardVal != null) {
return size + CodedOutputStream.computeBoolSize(10,
secretAwardVal.booleanValue());
}
return size;
}

private int computeButtonSize(Button object) {


return (0 + computeStringSize(1, object.actionText)) +
CodedOutputStream.computeInt32Size(2, object.requiredAction.getNumber());
}

private int computeCaptchaSize(Captcha object) {


return 0 + computeStringSize(1, object.imageId);
}

private int computeCellIDSize(CellID object) {


int size = (((0 + computeStringSize(1, object.cellId)) +
computeStringSize(2, object.locationAreaId)) + computeStringSize(3, object.mnc)) +
computeStringSize(4, object.mcc);
String signalStrengthVal = object.signalStrength;
if (signalStrengthVal != null) {
size += computeStringSize(5, signalStrengthVal);
}
String homeCountryCodeVal = object.homeCountryCode;
if (homeCountryCodeVal != null) {
size += computeStringSize(6, homeCountryCodeVal);
}
String imsiVal = object.imsi;
if (imsiVal != null) {
return size + computeStringSize(7, imsiVal);
}
return size;
}

private int computeChatInstanceSize(ChatInstance object) {


int size = 0 + computeStringSize(1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
dateModifiedVal.longValue());
}
Integer counterVal = object.counter;
if (counterVal != null) {
size += CodedOutputStream.computeInt32Size(3, counterVal.intValue());
}
size = (size + computeStringSize(4, object.theirIconId)) +
computeStringSize(5, object.myIconId);
Boolean otherAccountDeletedVal = object.otherAccountDeleted;
if (otherAccountDeletedVal != null) {
size += CodedOutputStream.computeBoolSize(6,
otherAccountDeletedVal.booleanValue());
}
Vector iceBreakersList = object.iceBreakers;
if (iceBreakersList != null) {
for (int c = 0; c < iceBreakersList.size(); c++) {
size += computeStringSize(7, (String)
iceBreakersList.elementAt(c));
}
}
size += CodedOutputStream.computeBoolSize(8, object.isNew);
Boolean feelsLikeChattingVal = object.feelsLikeChatting;
if (feelsLikeChattingVal != null) {
size += CodedOutputStream.computeBoolSize(9,
feelsLikeChattingVal.booleanValue());
}
Integer myUnreadMessagesVal = object.myUnreadMessages;
if (myUnreadMessagesVal != null) {
size += CodedOutputStream.computeInt32Size(10,
myUnreadMessagesVal.intValue());
}
Integer theirUnreadMessagesVal = object.theirUnreadMessages;
if (theirUnreadMessagesVal != null) {
size += CodedOutputStream.computeInt32Size(11,
theirUnreadMessagesVal.intValue());
}
String chatIcebreakerMainVal = object.chatIcebreakerMain;
if (chatIcebreakerMainVal != null) {
size += computeStringSize(12, chatIcebreakerMainVal);
}
String chatIcebreakerExtraVal = object.chatIcebreakerExtra;
if (chatIcebreakerExtraVal != null) {
size += computeStringSize(13, chatIcebreakerExtraVal);
}
String promoMessageVal = object.promoMessage;
if (promoMessageVal != null) {
size += computeStringSize(14, promoMessageVal);
}
String chatIcebreakerAskVal = object.chatIcebreakerAsk;
if (chatIcebreakerAskVal != null) {
size += computeStringSize(15, chatIcebreakerAskVal);
}
String chatSuggestionTitleVal = object.chatSuggestionTitle;
if (chatSuggestionTitleVal != null) {
size += computeStringSize(16, chatSuggestionTitleVal);
}
String chatSuggestionPromptVal = object.chatSuggestionPrompt;
if (chatSuggestionPromptVal != null) {
return size + computeStringSize(17, chatSuggestionPromptVal);
}
return size;
}

private int computeChatIsWritingSize(ChatIsWriting object) {


return (0 + computeStringSize(1, object.whoIsWriting)) +
computeStringSize(2, object.whoIsWaiting);
}

private int computeChatMessageSize(ChatMessage object) {


int size = 0 + computeStringSize(1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
dateModifiedVal.longValue());
}
size = ((((size + computeStringSize(3, object.fromPersonId)) +
computeStringSize(4, object.toPersonId)) + computeStringSize(5, object.mssg)) +
CodedOutputStream.computeInt32Size(6, object.messageType.getNumber())) +
CodedOutputStream.computeBoolSize(7, object.read);
String albumIdVal = object.albumId;
if (albumIdVal != null) {
size += computeStringSize(8, albumIdVal);
}
Integer totalUnreadVal = object.totalUnread;
if (totalUnreadVal != null) {
size += CodedOutputStream.computeInt32Size(9,
totalUnreadVal.intValue());
}
Integer unreadFromUserVal = object.unreadFromUser;
if (unreadFromUserVal != null) {
size += CodedOutputStream.computeInt32Size(11,
unreadFromUserVal.intValue());
}
String imageUrlVal = object.imageUrl;
if (imageUrlVal != null) {
size += computeStringSize(12, imageUrlVal);
}
String frameUrlVal = object.frameUrl;
if (frameUrlVal != null) {
size += computeStringSize(13, frameUrlVal);
}
Boolean isAnonymousChatVal = object.isAnonymousChat;
if (isAnonymousChatVal != null) {
size += CodedOutputStream.computeBoolSize(14,
isAnonymousChatVal.booleanValue());
}
Multimedia multimediaVal = object.multimedia;
if (multimediaVal != null) {
size += CodedOutputStream.computeBytesSize(15,
computeMultimediaSize(multimediaVal));
}
Boolean canDeleteVal = object.canDelete;
if (canDeleteVal != null) {
size += CodedOutputStream.computeBoolSize(16,
canDeleteVal.booleanValue());
}
Boolean deletedVal = object.deleted;
if (deletedVal != null) {
size += CodedOutputStream.computeBoolSize(17,
deletedVal.booleanValue());
}
String sectionTitleVal = object.sectionTitle;
if (sectionTitleVal != null) {
size += computeStringSize(18, sectionTitleVal);
}
ChatUserInfo fromPersonInfoVal = object.fromPersonInfo;
if (fromPersonInfoVal != null) {
return size + CodedOutputStream.computeBytesSize(19,
computeChatUserInfoSize(fromPersonInfoVal));
}
return size;
}

private int computeChatMessageReceivedSize(ChatMessageReceived object) {


int size = (0 + computeStringSize(1, object.uid)) +
CodedOutputStream.computeBoolSize(2, object.success);
String errorMessageVal = object.errorMessage;
if (errorMessageVal != null) {
size += computeStringSize(3, errorMessageVal);
}
ChatMessage chatMessageVal = object.chatMessage;
if (chatMessageVal != null) {
return size + CodedOutputStream.computeBytesSize(4,
computeChatMessageSize(chatMessageVal));
}
return size;
}

private int computeChatSettingsSize(ChatSettings object) {


int size = 0;
String chatInstanceIdVal = object.chatInstanceId;
if (chatInstanceIdVal != null) {
size = 0 + computeStringSize(1, chatInstanceIdVal);
}
MultimediaSettings multimediaSettingsVal = object.multimediaSettings;
if (multimediaSettingsVal != null) {
return size + CodedOutputStream.computeBytesSize(2,
computeMultimediaSettingsSize(multimediaSettingsVal));
}
return size;
}

private int computeChatUserInfoSize(ChatUserInfo object) {


int size = 0;
String nameVal = object.name;
if (nameVal != null) {
size = 0 + computeStringSize(1, nameVal);
}
Integer ageVal = object.age;
if (ageVal != null) {
size += CodedOutputStream.computeInt32Size(2, ageVal.intValue());
}
SexType genderVal = object.gender;
if (genderVal != null) {
size += CodedOutputStream.computeInt32Size(3, genderVal.getNumber());
}
String largeImageIdVal = object.largeImageId;
if (largeImageIdVal != null) {
size += computeStringSize(4, largeImageIdVal);
}
Integer interestsCountVal = object.interestsCount;
if (interestsCountVal != null) {
size += CodedOutputStream.computeInt32Size(5,
interestsCountVal.intValue());
}
String wishVal = object.wish;
if (wishVal != null) {
size += computeStringSize(6, wishVal);
}
Integer numberOfPhotosVal = object.numberOfPhotos;
if (numberOfPhotosVal != null) {
size += CodedOutputStream.computeInt32Size(7,
numberOfPhotosVal.intValue());
}
Integer profileRatingVal = object.profileRating;
if (profileRatingVal != null) {
return size + CodedOutputStream.computeInt32Size(8,
profileRatingVal.intValue());
}
return size;
}

private int computeCircleDescriptionSize(CircleDescription object) {


int size = 0;
String numberVal = object.number;
if (numberVal != null) {
size = 0 + computeStringSize(1, numberVal);
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
return size + computeStringSize(2, displayTextVal);
}
return size;
}

private int computeCitiesSize(Cities object) {


int size = 0;
Vector citiesList = object.cities;
if (citiesList != null) {
for (int c = 0; c < citiesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeCitySize((City) citiesList.elementAt(c)));
}
}
return size;
}

private int computeCitySize(City object) {


int size = (0 + CodedOutputStream.computeInt32Size(1, object.id)) +
computeStringSize(2, object.name);
Double longitudeVal = object.longitude;
if (longitudeVal != null) {
size += CodedOutputStream.computeDoubleSize(3,
longitudeVal.doubleValue());
}
Double latitudeVal = object.latitude;
if (latitudeVal != null) {
return size + CodedOutputStream.computeDoubleSize(4,
latitudeVal.doubleValue());
}
return size;
}

private int computeClientAnonymousChatSize(ClientAnonymousChat object) {


int size = 0;
Boolean searchingVal = object.searching;
if (searchingVal != null) {
size = 0 + CodedOutputStream.computeBoolSize(1,
searchingVal.booleanValue());
}
String chatIdVal = object.chatId;
if (chatIdVal != null) {
size += computeStringSize(2, chatIdVal);
}
ClientOpenChat openChatInstanceVal = object.openChatInstance;
if (openChatInstanceVal != null) {
return size + CodedOutputStream.computeBytesSize(3,
computeClientOpenChatSize(openChatInstanceVal));
}
return size;
}

private int computeClientCaptchaAttemptSize(ClientCaptchaAttempt object) {


int size = 0 + CodedOutputStream.computeBoolSize(1, object.success);
Captcha captchaVal = object.captcha;
if (captchaVal != null) {
return size + CodedOutputStream.computeBytesSize(2,
computeCaptchaSize(captchaVal));
}
return size;
}

private int computeClientChangeHostSize(ClientChangeHost object) {


int c;
int size = 0;
Vector hostsList = object.hosts;
if (hostsList != null) {
for (c = 0; c < hostsList.size(); c++) {
size += computeStringSize(1, (String) hostsList.elementAt(c));
}
}
Vector secureHostsList = object.secureHosts;
if (secureHostsList != null) {
for (c = 0; c < secureHostsList.size(); c++) {
size += computeStringSize(2, (String)
secureHostsList.elementAt(c));
}
}
Boolean mustReconnectVal = object.mustReconnect;
if (mustReconnectVal != null) {
return size + CodedOutputStream.computeBoolSize(3,
mustReconnectVal.booleanValue());
}
return size;
}
private int computeClientChatMessagesSize(ClientChatMessages object) {
int size = 0 + CodedOutputStream.computeBytesSize(1,
computeChatInstanceSize(object.chatInstance));
Vector messagesList = object.messages;
if (messagesList != null) {
for (int c = 0; c < messagesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeChatMessageSize((ChatMessage) messagesList.elementAt(c)));
}
}
return size;
}

private int computeClientCommonSettingsSize(ClientCommonSettings object) {


int c;
int size = 0;
Integer partnerIdVal = object.partnerId;
if (partnerIdVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
partnerIdVal.intValue());
}
ClientChangeHost changeHostVal = object.changeHost;
if (changeHostVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeClientChangeHostSize(changeHostVal));
}
Integer languageIdVal = object.languageId;
if (languageIdVal != null) {
size += CodedOutputStream.computeInt32Size(3,
languageIdVal.intValue());
}
Vector applicationFeaturesList = object.applicationFeatures;
if (applicationFeaturesList != null) {
for (c = 0; c < applicationFeaturesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeApplicationFeatureSize((ApplicationFeature)
applicationFeaturesList.elementAt(c)));
}
}
Boolean phoneConfirmMissingVal = object.phoneConfirmMissing;
if (phoneConfirmMissingVal != null) {
size += CodedOutputStream.computeBoolSize(5,
phoneConfirmMissingVal.booleanValue());
}
Boolean allowReviewVal = object.allowReview;
if (allowReviewVal != null) {
size += CodedOutputStream.computeBoolSize(6,
allowReviewVal.booleanValue());
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
size += CodedOutputStream.computeBytesSize(7,
computeABTestingSettingsSize(aBTestingSettingsVal));
}
Vector externalEndpointsList = object.externalEndpoints;
if (externalEndpointsList != null) {
for (c = 0; c < externalEndpointsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(8,
computeExternalEndpointSize((ExternalEndpoint)
externalEndpointsList.elementAt(c)));
}
}
return size;
}

private int computeClientDeleteAccountInfoSize(ClientDeleteAccountInfo object)


{
int size = 0;
Vector deleteAccountReasonsList = object.deleteAccountReasons;
if (deleteAccountReasonsList != null) {
for (int c = 0; c < deleteAccountReasonsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeDeleteAccountReasonTypeSize((DeleteAccountReasonType)
deleteAccountReasonsList.elementAt(c)));
}
}
return size;
}

private int computeClientEncountersSize(ClientEncounters object) {


int size = 0;
Vector resultsList = object.results;
if (resultsList != null) {
for (int c = 0; c < resultsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeSearchResultSize((SearchResult) resultsList.elementAt(c)));
}
}
SearchType searchContextVal = object.searchContext;
if (searchContextVal != null) {
size += CodedOutputStream.computeInt32Size(2,
searchContextVal.getNumber());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
offsetVal.intValue());
}
return size;
}

private int computeClientFacebookFriendSize(ClientFacebookFriend object) {


int size = ((0 + CodedOutputStream.computeInt64Size(1, object.uid)) +
computeStringSize(2, object.name)) + CodedOutputStream.computeInt32Size(3,
object.gender.getNumber());
String picSquareVal = object.picSquare;
if (picSquareVal != null) {
size += computeStringSize(4, picSquareVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
return size + computeStringSize(5, userIdVal);
}
return size;
}

private int computeClientFeedbackListSize(ClientFeedbackList object) {


int size = 0;
Vector feedbackKeyList = object.feedbackKey;
if (feedbackKeyList != null) {
for (int c = 0; c < feedbackKeyList.size(); c++) {
size += computeStringSize(1, (String)
feedbackKeyList.elementAt(c));
}
}
return size;
}

private int computeClientFriendsImportSize(ClientFriendsImport object) {


int size = 0;
String importIdVal = object.importId;
if (importIdVal != null) {
size = 0 + computeStringSize(1, importIdVal);
}
Boolean completeVal = object.complete;
if (completeVal != null) {
size += CodedOutputStream.computeBoolSize(2,
completeVal.booleanValue());
}
Boolean successVal = object.success;
if (successVal != null) {
size += CodedOutputStream.computeBoolSize(3,
successVal.booleanValue());
}
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computePhonebookContactSize((PhonebookContact) contactsList.elementAt(c)));
}
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
size += computeStringSize(5, displayTextVal);
}
FormFailure formVal = object.form;
if (formVal != null) {
size += CodedOutputStream.computeBytesSize(6,
computeFormFailureSize(formVal));
}
String headerTextVal = object.headerText;
if (headerTextVal != null) {
size += computeStringSize(7, headerTextVal);
}
Integer requiredContactCountVal = object.requiredContactCount;
if (requiredContactCountVal != null) {
size += CodedOutputStream.computeInt32Size(8,
requiredContactCountVal.intValue());
}
String legalInfoVal = object.legalInfo;
if (legalInfoVal != null) {
size += computeStringSize(9, legalInfoVal);
}
Boolean clientShouldSendSmsVal = object.clientShouldSendSms;
if (clientShouldSendSmsVal != null) {
size += CodedOutputStream.computeBoolSize(10,
clientShouldSendSmsVal.booleanValue());
}
String smsContentTextVal = object.smsContentText;
if (smsContentTextVal != null) {
size += computeStringSize(11, smsContentTextVal);
}
ContactListView viewVal = object.view;
if (viewVal != null) {
return size + CodedOutputStream.computeInt32Size(12,
viewVal.getNumber());
}
return size;
}

private int computeClientGetCaptchaSize(ClientGetCaptcha object) {


return 0 + CodedOutputStream.computeBytesSize(1,
computeCaptchaSize(object.captcha));
}

private int computeClientGetOwnPhotoRatingSize(ClientGetOwnPhotoRating object)


{
int size = 0;
PhotoRating ratingVal = object.rating;
if (ratingVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computePhotoRatingSize(ratingVal));
}
String messageVal = object.message;
if (messageVal != null) {
return size + computeStringSize(2, messageVal);
}
return size;
}

private int
computeClientGetPhotoRatingConfigurationSize(ClientGetPhotoRatingConfiguration
object) {
int size = 0;
Vector rangeList = object.range;
if (rangeList != null) {
for (int c = 0; c < rangeList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhotoRateRangeSize((PhotoRateRange) rangeList.elementAt(c)));
}
}
RateFilter defaultFilterVal = object.defaultFilter;
if (defaultFilterVal != null) {
return size + CodedOutputStream.computeBytesSize(2,
computeRateFilterSize(defaultFilterVal));
}
return size;
}

private int computeClientGetPhotosToRateSize(ClientGetPhotosToRate object) {


int size = 0;
Vector photosList = object.photos;
if (photosList != null) {
for (int c = 0; c < photosList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhotoToRateSize((PhotoToRate) photosList.elementAt(c)));
}
}
RatingViewBlockedInfo ratingBlockVal = object.ratingBlock;
if (ratingBlockVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeRatingViewBlockedInfoSize(ratingBlockVal));
}
ApplicationFeature addFeatureVal = object.addFeature;
if (addFeatureVal != null) {
return size + CodedOutputStream.computeBytesSize(3,
computeApplicationFeatureSize(addFeatureVal));
}
return size;
}

private int computeClientGetRateMessageSize(ClientGetRateMessage object) {


int size = 0;
String reviewTitleVal = object.reviewTitle;
if (reviewTitleVal != null) {
size = 0 + computeStringSize(1, reviewTitleVal);
}
String reviewMessageVal = object.reviewMessage;
if (reviewMessageVal != null) {
size += computeStringSize(2, reviewMessageVal);
}
String reviewUrlVal = object.reviewUrl;
if (reviewUrlVal != null) {
size += computeStringSize(3, reviewUrlVal);
}
String reviewYesTextVal = object.reviewYesText;
if (reviewYesTextVal != null) {
size += computeStringSize(4, reviewYesTextVal);
}
String reviewNoTextVal = object.reviewNoText;
if (reviewNoTextVal != null) {
size += computeStringSize(5, reviewNoTextVal);
}
String reviewLaterTextVal = object.reviewLaterText;
if (reviewLaterTextVal != null) {
return size + computeStringSize(6, reviewLaterTextVal);
}
return size;
}

private int computeClientImageActionSize(ClientImageAction object) {


int size = 0;
Boolean successVal = object.success;
if (successVal != null) {
size = 0 + CodedOutputStream.computeBoolSize(1,
successVal.booleanValue());
}
String errorMessageVal = object.errorMessage;
if (errorMessageVal != null) {
size += computeStringSize(2, errorMessageVal);
}
String updateImageIdVal = object.updateImageId;
if (updateImageIdVal != null) {
return size + computeStringSize(3, updateImageIdVal);
}
return size;
}

private int computeClientInterestsSize(ClientInterests object) {


int size = 0;
String userIdVal = object.userId;
if (userIdVal != null) {
size = 0 + computeStringSize(1, userIdVal);
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (int c = 0; c < interestsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeInterestSize((Interest) interestsList.elementAt(c)));
}
}
Integer totalVal = object.total;
if (totalVal != null) {
size += CodedOutputStream.computeInt32Size(3, totalVal.intValue());
}
Integer groupIdVal = object.groupId;
if (groupIdVal != null) {
size += CodedOutputStream.computeInt32Size(4, groupIdVal.intValue());
}
String summaryVal = object.summary;
if (summaryVal != null) {
size += computeStringSize(5, summaryVal);
}
String searchFilterVal = object.searchFilter;
if (searchFilterVal != null) {
size += computeStringSize(6, searchFilterVal);
}
InterestSortOrder orderVal = object.order;
if (orderVal != null) {
size += CodedOutputStream.computeInt32Size(7, orderVal.getNumber());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
size += CodedOutputStream.computeInt32Size(8, offsetVal.intValue());
}
Boolean isRejectedVal = object.isRejected;
if (isRejectedVal != null) {
return size + CodedOutputStream.computeBoolSize(9,
isRejectedVal.booleanValue());
}
return size;
}

private int computeClientLoginSuccessSize(ClientLoginSuccess object) {


int size = (((0 + computeStringSize(1, object.sessionId)) +
CodedOutputStream.computeBytesSize(2, computePersonSize(object.user))) +
CodedOutputStream.computeInt32Size(4, object.deprecatedNewPeople)) +
CodedOutputStream.computeInt32Size(5, object.deprecatedNewMessages);
PromoBlock promoVal = object.promo;
if (promoVal != null) {
size += CodedOutputStream.computeBytesSize(6,
computePromoBlockSize(promoVal));
}
Integer languageIdVal = object.languageId;
if (languageIdVal != null) {
size += CodedOutputStream.computeInt32Size(8,
languageIdVal.intValue());
}
Vector appFeatureList = object.appFeature;
if (appFeatureList != null) {
for (int c = 0; c < appFeatureList.size(); c++) {
size += CodedOutputStream.computeBytesSize(9,
computeApplicationFeatureSize((ApplicationFeature) appFeatureList.elementAt(c)));
}
}
String photoUploadEmailVal = object.photoUploadEmail;
if (photoUploadEmailVal != null) {
size += computeStringSize(10, photoUploadEmailVal);
}
Boolean isFirstLoginVal = object.isFirstLogin;
if (isFirstLoginVal != null) {
size += CodedOutputStream.computeBoolSize(11,
isFirstLoginVal.booleanValue());
}
Boolean phoneConfirmMissingVal = object.phoneConfirmMissing;
if (phoneConfirmMissingVal != null) {
size += CodedOutputStream.computeBoolSize(12,
phoneConfirmMissingVal.booleanValue());
}
Integer partnerIdVal = object.partnerId;
if (partnerIdVal != null) {
size += CodedOutputStream.computeInt32Size(13,
partnerIdVal.intValue());
}
ClientChangeHost changeHostVal = object.changeHost;
if (changeHostVal != null) {
size += CodedOutputStream.computeBytesSize(15,
computeClientChangeHostSize(changeHostVal));
}
PromoBlock continueUrlVal = object.continueUrl;
if (continueUrlVal != null) {
size += CodedOutputStream.computeBytesSize(17,
computePromoBlockSize(continueUrlVal));
}
Boolean allowReviewVal = object.allowReview;
if (allowReviewVal != null) {
size += CodedOutputStream.computeBoolSize(18,
allowReviewVal.booleanValue());
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
size += CodedOutputStream.computeBytesSize(19,
computeABTestingSettingsSize(aBTestingSettingsVal));
}
RedirectPage redirectPageVal = object.redirectPage;
if (redirectPageVal != null) {
return size + CodedOutputStream.computeBytesSize(20,
computeRedirectPageSize(redirectPageVal));
}
return size;
}
private int computeClientModeratedPhotosSize(ClientModeratedPhotos object) {
int size = 0;
Vector albumsList = object.albums;
if (albumsList != null) {
for (int c = 0; c < albumsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeAlbumSize((Album) albumsList.elementAt(c)));
}
}
return size;
}

private int computeClientNotificationSize(ClientNotification object) {


int size = 0 + computeStringSize(1, object.id);
String titleVal = object.title;
if (titleVal != null) {
size += computeStringSize(2, titleVal);
}
String messageVal = object.message;
if (messageVal != null) {
size += computeStringSize(3, messageVal);
}
FeatureType displayVal = object.display;
if (displayVal != null) {
size += CodedOutputStream.computeInt32Size(4, displayVal.getNumber());
}
FeatureType featureVal = object.feature;
if (featureVal != null) {
size += CodedOutputStream.computeInt32Size(5, featureVal.getNumber());
}
size += CodedOutputStream.computeInt32Size(6, object.action.getNumber());
Boolean urgentVal = object.urgent;
if (urgentVal != null) {
size += CodedOutputStream.computeBoolSize(7, urgentVal.booleanValue());
}
String actionTextVal = object.actionText;
if (actionTextVal != null) {
size += computeStringSize(8, actionTextVal);
}
String transactionIdentifierVal = object.transactionIdentifier;
if (transactionIdentifierVal != null) {
size += computeStringSize(9, transactionIdentifierVal);
}
String urlVal = object.url;
if (urlVal != null) {
size += computeStringSize(10, urlVal);
}
Vector imageUrlsList = object.imageUrls;
if (imageUrlsList != null) {
for (int c = 0; c < imageUrlsList.size(); c++) {
size += computeStringSize(11, (String) imageUrlsList.elementAt(c));
}
}
ClientNotificationType typeVal = object.type;
if (typeVal != null) {
return size + CodedOutputStream.computeInt32Size(12,
typeVal.getNumber());
}
return size;
}

private int computeClientOpenChatSize(ClientOpenChat object) {


int c;
int size = 0 + CodedOutputStream.computeBytesSize(1,
computeChatInstanceSize(object.chatInstance));
Vector messagesList = object.messages;
if (messagesList != null) {
for (c = 0; c < messagesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeAnonymousObjectSize(messagesList.elementAt(c)));
}
}
Integer unreadMessagesVal = object.unreadMessages;
if (unreadMessagesVal != null) {
size += CodedOutputStream.computeInt32Size(3,
unreadMessagesVal.intValue());
}
String photoIdVal = object.photoId;
if (photoIdVal != null) {
size += computeStringSize(4, photoIdVal);
}
String bbmIdVal = object.bbmId;
if (bbmIdVal != null) {
size += computeStringSize(5, bbmIdVal);
}
String bbPinVal = object.bbPin;
if (bbPinVal != null) {
size += computeStringSize(6, bbPinVal);
}
Integer maxUnansweredMessagesVal = object.maxUnansweredMessages;
if (maxUnansweredMessagesVal != null) {
size += CodedOutputStream.computeInt32Size(7,
maxUnansweredMessagesVal.intValue());
}
ChatUserInfo userVal = object.user;
if (userVal != null) {
size += CodedOutputStream.computeBytesSize(8,
computeChatUserInfoSize(userVal));
}
Boolean isChatAvailableVal = object.isChatAvailable;
if (isChatAvailableVal != null) {
size += CodedOutputStream.computeBoolSize(9,
isChatAvailableVal.booleanValue());
}
SocialFriendsConnectionsBlock friendsConnectionsVal =
object.friendsConnections;
if (friendsConnectionsVal != null) {
size += CodedOutputStream.computeBytesSize(10,
computeSocialFriendsConnectionsBlockSize(friendsConnectionsVal));
}
AnonymousChatSettings anonymousSettingsVal = object.anonymousSettings;
if (anonymousSettingsVal != null) {
size += CodedOutputStream.computeBytesSize(11,
computeAnonymousChatSettingsSize(anonymousSettingsVal));
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (c = 0; c < interestsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(12,
computeInterestSize((Interest) interestsList.elementAt(c)));
}
}
Boolean userOriginatedMessageVal = object.userOriginatedMessage;
if (userOriginatedMessageVal != null) {
size += CodedOutputStream.computeBoolSize(13,
userOriginatedMessageVal.booleanValue());
}
String unavailableChatBypassTextVal = object.unavailableChatBypassText;
if (unavailableChatBypassTextVal != null) {
size += computeStringSize(14, unavailableChatBypassTextVal);
}
String titleVal = object.title;
if (titleVal != null) {
size += computeStringSize(15, titleVal);
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(16,
interestsInCommonVal.intValue());
}
ChatSettings chatSettingsVal = object.chatSettings;
if (chatSettingsVal != null) {
size += CodedOutputStream.computeBytesSize(17,
computeChatSettingsSize(chatSettingsVal));
}
Vector chatMessagesList = object.chatMessages;
if (chatMessagesList != null) {
for (c = 0; c < chatMessagesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(18,
computeChatMessageSize((ChatMessage) chatMessagesList.elementAt(c)));
}
}
return size;
}

private int computeClientPersonProfileEditFormSize(ClientPersonProfileEditForm


object) {
int size = 0;
Vector optionsList = object.options;
if (optionsList != null) {
for (int c = 0; c < optionsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeClientProfileOptionSize((ClientProfileOption) optionsList.elementAt(c)));
}
}
return size;
}

private int computeClientPictureSize(ClientPicture object) {


int size = 0 + computeStringSize(2, object.uid);
byte[] dataVal = object.data;
if (dataVal != null) {
return size + CodedOutputStream.computeBytesSize(3,
computeByteArraySize(dataVal));
}
return size;
}
private int computeClientProfileOptionSize(ClientProfileOption object) {
int c;
int size = 0;
String idVal = object.id;
if (idVal != null) {
size = 0 + computeStringSize(1, idVal);
}
size = (size + computeStringSize(2, object.name)) + computeStringSize(3,
object.displayValue);
InputTypes inputTypeVal = object.inputType;
if (inputTypeVal != null) {
size += CodedOutputStream.computeInt32Size(4,
inputTypeVal.getNumber());
}
Integer maxCharsVal = object.maxChars;
if (maxCharsVal != null) {
size += CodedOutputStream.computeInt32Size(5, maxCharsVal.intValue());
}
Vector inputPartsList = object.inputParts;
if (inputPartsList != null) {
for (c = 0; c < inputPartsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(6,
computeClientProfileOptionSize((ClientProfileOption) inputPartsList.elementAt(c)));
}
}
Vector optionsList = object.options;
if (optionsList != null) {
for (c = 0; c < optionsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(7,
computeTupleSize((Tuple) optionsList.elementAt(c)));
}
}
String currentOptionIdVal = object.currentOptionId;
if (currentOptionIdVal != null) {
size += computeStringSize(8, currentOptionIdVal);
}
String helpTextVal = object.helpText;
if (helpTextVal != null) {
size += computeStringSize(9, helpTextVal);
}
Integer minCharsVal = object.minChars;
if (minCharsVal != null) {
size += CodedOutputStream.computeInt32Size(10, minCharsVal.intValue());
}
String ifMasterIdVal = object.ifMasterId;
if (ifMasterIdVal != null) {
size += computeStringSize(11, ifMasterIdVal);
}
Vector ifMasterValueList = object.ifMasterValue;
if (ifMasterValueList != null) {
for (c = 0; c < ifMasterValueList.size(); c++) {
size += computeStringSize(12, (String)
ifMasterValueList.elementAt(c));
}
}
Boolean checkedVal = object.checked;
if (checkedVal != null) {
size += CodedOutputStream.computeBoolSize(13,
checkedVal.booleanValue());
}
Boolean disabledVal = object.disabled;
if (disabledVal != null) {
size += CodedOutputStream.computeBoolSize(14,
disabledVal.booleanValue());
}
String hintVal = object.hint;
if (hintVal != null) {
size += computeStringSize(15, hintVal);
}
ProfileOptionType typeVal = object.type;
if (typeVal != null) {
size += CodedOutputStream.computeInt32Size(17, typeVal.getNumber());
}
Vector possibleValuesList = object.possibleValues;
if (possibleValuesList != null) {
for (c = 0; c < possibleValuesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(18,
computeClientProfileOptionValueSize((ClientProfileOptionValue)
possibleValuesList.elementAt(c)));
}
}
return size;
}

private int computeClientProfileOptionValueSize(ClientProfileOptionValue


object) {
int size = 0;
String valueVal = object.value;
if (valueVal != null) {
size = 0 + computeStringSize(1, valueVal);
}
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
return size + computeStringSize(2, displayValueVal);
}
return size;
}

private int computeClientPurchaseReceiptSize(ClientPurchaseReceipt object) {


int size = (0 + computeStringSize(1, object.transactionIdentifier)) +
CodedOutputStream.computeBoolSize(2, object.purchaseSuccess);
ClientNotification notificationVal = object.notification;
if (notificationVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeClientNotificationSize(notificationVal));
}
Boolean isSynchronousVal = object.isSynchronous;
if (isSynchronousVal != null) {
return size + CodedOutputStream.computeBoolSize(4,
isSynchronousVal.booleanValue());
}
return size;
}

private int computeClientRatePhotoSuccessSize(ClientRatePhotoSuccess object) {


int size = 0;
String averageScoreVal = object.averageScore;
if (averageScoreVal != null) {
size = 0 + computeStringSize(1, averageScoreVal);
}
RatingViewBlockedInfo ratingBlockVal = object.ratingBlock;
if (ratingBlockVal != null) {
return size + CodedOutputStream.computeBytesSize(2,
computeRatingViewBlockedInfoSize(ratingBlockVal));
}
return size;
}

private int computeClientReportTypesSize(ClientReportTypes object) {


int size = 0;
Vector reportTypeList = object.reportType;
if (reportTypeList != null) {
for (int c = 0; c < reportTypeList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeUserReportTypeSize((UserReportType) reportTypeList.elementAt(c)));
}
}
return size;
}

private int computeClientResetTrustedNetworkSize(ClientResetTrustedNetwork


object) {
Boolean successVal = object.success;
if (successVal != null) {
return 0 + CodedOutputStream.computeBoolSize(1,
successVal.booleanValue());
}
return 0;
}

private int computeClientSendSlotsSize(ClientSendSlots object) {


int size = 0 + CodedOutputStream.computeBoolSize(1, object.success);
ClientNotification clientNotificationVal = object.clientNotification;
if (clientNotificationVal != null) {
return size + CodedOutputStream.computeBytesSize(2,
computeClientNotificationSize(clientNotificationVal));
}
return size;
}

private int
computeClientSocialSharingProvidersSize(ClientSocialSharingProviders object) {
int size = 0;
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeSocialSharingProviderSize((SocialSharingProvider)
providersList.elementAt(c)));
}
}
return size;
}

private int computeClientSpotlightMetaDataSize(ClientSpotlightMetaData object)


{
int size = 0;
byte[] spotlightServerVal = object.spotlightServer;
if (spotlightServerVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computeByteArraySize(spotlightServerVal));
}
String pictureDomainVal = object.pictureDomain;
if (pictureDomainVal != null) {
size += computeStringSize(2, pictureDomainVal);
}
String pictureQueryStringVal = object.pictureQueryString;
if (pictureQueryStringVal != null) {
size += computeStringSize(3, pictureQueryStringVal);
}
Boolean isVerificationEnabledVal = object.isVerificationEnabled;
if (isVerificationEnabledVal != null) {
size += CodedOutputStream.computeBoolSize(4,
isVerificationEnabledVal.booleanValue());
}
Boolean canViewOnlineStatusVal = object.canViewOnlineStatus;
if (canViewOnlineStatusVal != null) {
size += CodedOutputStream.computeBoolSize(5,
canViewOnlineStatusVal.booleanValue());
}
Boolean isRtlVal = object.isRtl;
if (isRtlVal != null) {
return size + CodedOutputStream.computeBoolSize(6,
isRtlVal.booleanValue());
}
return size;
}

private int computeClientStartupSize(ClientStartup object) {


int c;
int size = 0;
Vector locationServicesList = object.locationServices;
if (locationServicesList != null) {
for (c = 0; c < locationServicesList.size(); c++) {
size += CodedOutputStream.computeInt32Size(2, ((GeoLocationType)
locationServicesList.elementAt(c)).getNumber());
}
}
ClientUpgrade upgradeVal = object.upgrade;
if (upgradeVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeClientUpgradeSize(upgradeVal));
}
Integer languageIdVal = object.languageId;
if (languageIdVal != null) {
size += CodedOutputStream.computeInt32Size(4,
languageIdVal.intValue());
}
Vector appFeatureList = object.appFeature;
if (appFeatureList != null) {
for (c = 0; c < appFeatureList.size(); c++) {
size += CodedOutputStream.computeBytesSize(6,
computeApplicationFeatureSize((ApplicationFeature) appFeatureList.elementAt(c)));
}
}
Boolean allowReviewVal = object.allowReview;
if (allowReviewVal != null) {
size += CodedOutputStream.computeBoolSize(7,
allowReviewVal.booleanValue());
}
String welcomeMessageVal = object.welcomeMessage;
if (welcomeMessageVal != null) {
size += computeStringSize(8, welcomeMessageVal);
}
String launchScreenVal = object.launchScreen;
if (launchScreenVal != null) {
size += computeStringSize(9, launchScreenVal);
}
String srvVal = object.srv;
if (srvVal != null) {
size += computeStringSize(11, srvVal);
}
String fullSiteUrlVal = object.fullSiteUrl;
if (fullSiteUrlVal != null) {
size += computeStringSize(12, fullSiteUrlVal);
}
Boolean forbidRegisterViaSmsVal = object.forbidRegisterViaSms;
if (forbidRegisterViaSmsVal != null) {
size += CodedOutputStream.computeBoolSize(13,
forbidRegisterViaSmsVal.booleanValue());
}
Boolean phoneConfirmMissingVal = object.phoneConfirmMissing;
if (phoneConfirmMissingVal != null) {
size += CodedOutputStream.computeBoolSize(14,
phoneConfirmMissingVal.booleanValue());
}
Integer partnerIdVal = object.partnerId;
if (partnerIdVal != null) {
size += CodedOutputStream.computeInt32Size(15,
partnerIdVal.intValue());
}
ClientChangeHost changeHostVal = object.changeHost;
if (changeHostVal != null) {
size += CodedOutputStream.computeBytesSize(16,
computeClientChangeHostSize(changeHostVal));
}
Boolean isPushEnabledVal = object.isPushEnabled;
if (isPushEnabledVal != null) {
size += CodedOutputStream.computeBoolSize(17,
isPushEnabledVal.booleanValue());
}
StartupSettings startupSettingsVal = object.startupSettings;
if (startupSettingsVal != null) {
size += CodedOutputStream.computeBytesSize(18,
computeStartupSettingsSize(startupSettingsVal));
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
return size + CodedOutputStream.computeBytesSize(19,
computeABTestingSettingsSize(aBTestingSettingsVal));
}
return size;
}
private int computeClientUpgradeSize(ClientUpgrade object) {
int size = (0 + computeStringSize(1, object.noticeMessage)) +
CodedOutputStream.computeBoolSize(2, object.compulsory);
String urlVal = object.url;
if (urlVal != null) {
size += computeStringSize(3, urlVal);
}
String noticeHeaderVal = object.noticeHeader;
if (noticeHeaderVal != null) {
return size + computeStringSize(4, noticeHeaderVal);
}
return size;
}

private int computeClientUploadPhotoSize(ClientUploadPhoto object) {


int size = 0;
Album albumVal = object.album;
if (albumVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(2,
computeAlbumSize(albumVal));
}
String guidVal = object.guid;
if (guidVal != null) {
size += computeStringSize(3, guidVal);
}
Photo photoVal = object.photo;
if (photoVal != null) {
return size + CodedOutputStream.computeBytesSize(4,
computePhotoSize(photoVal));
}
return size;
}

private int computeClientUserDataIncompleteSize(ClientUserDataIncomplete


object) {
int size = 0;
Vector dataTypeList = object.dataType;
if (dataTypeList != null) {
for (int c = 0; c < dataTypeList.size(); c++) {
size += CodedOutputStream.computeInt32Size(1, ((UserDataType)
dataTypeList.elementAt(c)).getNumber());
}
}
return size;
}

private int computeClientUserListSize(ClientUserList object) {


int size = 0;
Vector sectionList = object.section;
if (sectionList != null) {
for (int c = 0; c < sectionList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeListSectionSize((ListSection) sectionList.elementAt(c)));
}
}
Integer totalSectionsVal = object.totalSections;
if (totalSectionsVal != null) {
size += CodedOutputStream.computeInt32Size(2,
totalSectionsVal.intValue());
}
Integer totalCountVal = object.totalCount;
if (totalCountVal != null) {
size += CodedOutputStream.computeInt32Size(3,
totalCountVal.intValue());
}
String versionVal = object.version;
if (versionVal != null) {
size += computeStringSize(4, versionVal);
}
String spotlightVersionVal = object.spotlightVersion;
if (spotlightVersionVal != null) {
size += computeStringSize(5, spotlightVersionVal);
}
ApplicationFeature loadMoreFeatureVal = object.loadMoreFeature;
if (loadMoreFeatureVal != null) {
size += CodedOutputStream.computeBytesSize(6,
computeApplicationFeatureSize(loadMoreFeatureVal));
}
String titleVal = object.title;
if (titleVal != null) {
size += computeStringSize(7, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(8, descriptionVal);
}
PromoBlock promoBlockVal = object.promoBlock;
if (promoBlockVal != null) {
size += CodedOutputStream.computeBytesSize(9,
computePromoBlockSize(promoBlockVal));
}
SlotAvailabilityInfo slotInfoVal = object.slotInfo;
if (slotInfoVal != null) {
return size + CodedOutputStream.computeBytesSize(11,
computeSlotAvailabilityInfoSize(slotInfoVal));
}
return size;
}

private int computeClientUserRemoveVerifySize(ClientUserRemoveVerify object) {


int size = 0;
Boolean successVal = object.success;
if (successVal != null) {
size = 0 + CodedOutputStream.computeBoolSize(1,
successVal.booleanValue());
}
FormFailure formVal = object.form;
if (formVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeFormFailureSize(formVal));
}
ClientUserVerifiedGet verifiedSourceVal = object.verifiedSource;
if (verifiedSourceVal != null) {
return size + CodedOutputStream.computeBytesSize(3,
computeClientUserVerifiedGetSize(verifiedSourceVal));
}
return size;
}
private int computeClientUserVerifiedGetSize(ClientUserVerifiedGet object) {
int size = 0;
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
size = 0 + computeStringSize(1, displayMessageVal);
}
Vector methodsList = object.methods;
if (methodsList != null) {
for (int c = 0; c < methodsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeUserVerificationMethodStatusSize((UserVerificationMethodStatus)
methodsList.elementAt(c)));
}
}
Boolean isVerifiedVal = object.isVerified;
if (isVerifiedVal != null) {
return size + CodedOutputStream.computeBoolSize(3,
isVerifiedVal.booleanValue());
}
return size;
}

private int computeClientUserVerifySize(ClientUserVerify object) {


int size = 0;
Boolean successVal = object.success;
if (successVal != null) {
size = 0 + CodedOutputStream.computeBoolSize(1,
successVal.booleanValue());
}
FormFailure formVal = object.form;
if (formVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeFormFailureSize(formVal));
}
ClientUserVerifiedGet verifiedSourceVal = object.verifiedSource;
if (verifiedSourceVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeClientUserVerifiedGetSize(verifiedSourceVal));
}
String infoTextVal = object.infoText;
if (infoTextVal != null) {
return size + computeStringSize(4, infoTextVal);
}
return size;
}

private int computeClientVoteResponseSize(ClientVoteResponse object) {


int size = (0 + CodedOutputStream.computeInt32Size(1,
object.voteResponseType.getNumber())) + computeStringSize(2, object.message);
String personIdVal = object.personId;
if (personIdVal != null) {
size += computeStringSize(3, personIdVal);
}
String currentUserImageIdVal = object.currentUserImageId;
if (currentUserImageIdVal != null) {
size += computeStringSize(4, currentUserImageIdVal);
}
String otherUserImageIdVal = object.otherUserImageId;
if (otherUserImageIdVal != null) {
return size + computeStringSize(5, otherUserImageIdVal);
}
return size;
}

private int computeCometConfigurationSize(CometConfiguration object) {


int size = 0;
String pathVal = object.path;
if (pathVal != null) {
size = 0 + computeStringSize(1, pathVal);
}
String sequenceVal = object.sequence;
if (sequenceVal != null) {
return size + computeStringSize(2, sequenceVal);
}
return size;
}

private int computeContactImportProgressSize(ContactImportProgress object) {


int size = 0;
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhonebookContactSize((PhonebookContact) contactsList.elementAt(c)));
}
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
size += computeStringSize(2, displayTextVal);
}
String headerTextVal = object.headerText;
if (headerTextVal != null) {
size += computeStringSize(4, headerTextVal);
}
Integer requiredContactCountVal = object.requiredContactCount;
if (requiredContactCountVal != null) {
size += CodedOutputStream.computeInt32Size(5,
requiredContactCountVal.intValue());
}
String legalInfoVal = object.legalInfo;
if (legalInfoVal != null) {
size += computeStringSize(6, legalInfoVal);
}
Boolean clientShouldSendSmsVal = object.clientShouldSendSms;
if (clientShouldSendSmsVal != null) {
size += CodedOutputStream.computeBoolSize(7,
clientShouldSendSmsVal.booleanValue());
}
String smsContentTextVal = object.smsContentText;
if (smsContentTextVal != null) {
size += computeStringSize(8, smsContentTextVal);
}
ContactListView viewVal = object.view;
if (viewVal != null) {
return size + CodedOutputStream.computeInt32Size(9,
viewVal.getNumber());
}
return size;
}

private int computeCountrySize(Country object) {


return (0 + CodedOutputStream.computeInt32Size(1, object.id)) +
computeStringSize(2, object.name);
}

private int computeCreditsFeatureListSize(CreditsFeatureList object) {


int size = 0;
Vector featuresList = object.features;
if (featuresList != null) {
for (int c = 0; c < featuresList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeApplicationFeatureSize((ApplicationFeature) featuresList.elementAt(c)));
}
}
return size;
}

private int computeServerGetUserSize(ServerGetUser object) {


int size = 0;
String userIdVal = object.userId;
if (userIdVal != null) {
size = 0 + computeStringSize(1, userIdVal);
}
String tokenVal = object.token;
if (tokenVal != null) {
size += computeStringSize(2, tokenVal);
}
UserFieldFilter userFieldFilterVal = object.userFieldFilter;
if (userFieldFilterVal != null) {
size += CodedOutputStream.computeBytesSize(4,
computeUserFieldFilterSize(userFieldFilterVal));
}
ClientSource clientSourceVal = object.clientSource;
if (clientSourceVal != null) {
size += CodedOutputStream.computeInt32Size(5,
clientSourceVal.getNumber());
}
Boolean isPrefetchVal = object.isPrefetch;
if (isPrefetchVal != null) {
size += CodedOutputStream.computeBoolSize(6,
isPrefetchVal.booleanValue());
}
ProfileVisitingSource visitingSourceVal = object.visitingSource;
if (visitingSourceVal != null) {
size += CodedOutputStream.computeBytesSize(7,
computeProfileVisitingSourceSize(visitingSourceVal));
}

//String defaultPhotoId; // 8

return size;
}

private int computeServerSaveUserSize(ServerSaveUser object) {


int size = 0;
User userVal = object.user;
if (userVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computeUserSize(userVal));
}
UserFieldFilter saveFieldFilterVal = object.saveFieldFilter;
if (saveFieldFilterVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeUserFieldFilterSize(saveFieldFilterVal));
}
UserFieldFilter returnFieldFilterVal = object.returnFieldFilter;
if (returnFieldFilterVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeUserFieldFilterSize(returnFieldFilterVal));
}
return size;
}

private int computeServerGetRewardedVideosSize(ServerGetRewardedVideos object)


{
int size = 0;
Vector requests = object.requests;
if (requests != null) {
for (int c = 0; c < requests.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeRewardedVideoRequestSize((RewardedVideoRequest) requests.elementAt(c)));
}
}
return size;
}

private int computeRewardedVideoRequestSize(RewardedVideoRequest object) {


int size = 0;
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
size += CodedOutputStream.computeInt32Size(1, providerVal.getNumber());
}
PaymentProductType productTypeVal = object.productType;
if (productTypeVal != null) {
size += CodedOutputStream.computeInt32Size(2,
productTypeVal.getNumber());
}
RewardedVideoFlowType flowVal = object.flow;
if (flowVal != null) {
size += CodedOutputStream.computeInt32Size(3, flowVal.getNumber());
}
Boolean countdownSupportedVal = object.countdownSupported;
if (countdownSupportedVal != null) {
return size + CodedOutputStream.computeBoolSize(4,
countdownSupportedVal.booleanValue());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
size += CodedOutputStream.computeInt32Size(5, contextVal.getNumber());
}

return size;
}

private int computeUserSize(User object) {


int size = 0;
String userIdVal = object.userId;
if (userIdVal != null) {
size = 0 + computeStringSize(1, userIdVal);
}
ExternalProviderType userTypeVal = object.userType;
if (userTypeVal != null) {
size += CodedOutputStream.computeInt32Size(2, userTypeVal.getNumber());
}
List<UserField> projectionVal = object.projection; // 3
if (projectionVal != null) {
throw new UnsupportedOperationException();
}
ClientSource clientSourceVal = object.clientSource; // 4
if (clientSourceVal != null) {
throw new UnsupportedOperationException();
}
UserAccessLevel accessLevelVal = object.accessLevel; // 5
if (accessLevelVal != null) {
throw new UnsupportedOperationException();
}
String emailVal = object.email; // 10
if (emailVal != null) {
throw new UnsupportedOperationException();
}
String phoneVal = object.phone; // 20
if (phoneVal != null) {
throw new UnsupportedOperationException();
}
Integer creditsVal = object.credits; // 30
if (creditsVal != null) {
throw new UnsupportedOperationException();
}
Boolean accountConfirmedVal = object.accountConfirmed; // 40
if (accountConfirmedVal != null) {
throw new UnsupportedOperationException();
}
Integer profileCompletePercentVal = object.profileCompletePercent; // 50
if (profileCompletePercentVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowEditDobVal = object.allowEditDob; // 60
if (allowEditDobVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowEditGenderVal = object.allowEditGender; // 70
if (allowEditGenderVal != null) {
throw new UnsupportedOperationException();
}
Integer genderChangeLimitVal = object.genderChangeLimit; // 71
if (genderChangeLimitVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowEditNameVal = object.allowEditName; // 80
if (allowEditNameVal != null) {
throw new UnsupportedOperationException();
}
GeoLocation locationVal = object.location; // 90
if (locationVal != null) {
throw new UnsupportedOperationException();
}
Country countryVal = object.country; // 91
if (countryVal != null) {
throw new UnsupportedOperationException();
}
Region regionVal = object.region; // 92
if (regionVal != null) {
throw new UnsupportedOperationException();
}
City cityVal = object.city; // 93
if (cityVal != null) {
size += CodedOutputStream.computeBytesSize(93,
computeCitySize(cityVal));
}
ClientUserVerifiedGet verifiedInformationVal =
object.verifiedInformation; // 100
if (verifiedInformationVal != null) {
throw new UnsupportedOperationException();
}
CreditsRewards creditsRewardsVal = object.creditsRewards; // 110
if (creditsRewardsVal != null) {
throw new UnsupportedOperationException();
}
String nameVal = object.name; // 200
if (nameVal != null) {
throw new UnsupportedOperationException();
}
Integer ageVal = object.age; // 210
if (ageVal != null) {
throw new UnsupportedOperationException();
}
String dobVal = object.dob; // 220
if (dobVal != null) {
throw new UnsupportedOperationException();
}
String birthdayThisYearVal = object.birthdayThisYear; // 221
if (birthdayThisYearVal != null) {
throw new UnsupportedOperationException();
}
SexType genderVal = object.gender; // 230
if (genderVal != null) {
throw new UnsupportedOperationException();
}
Boolean isNewbieVal = object.isNewbie; // 240
if (isNewbieVal != null) {
throw new UnsupportedOperationException();
}
Boolean isDeletedVal = object.isDeleted; // 250
if (isDeletedVal != null) {
throw new UnsupportedOperationException();
}
Boolean isHotVal = object.isHot; // 260
if (isHotVal != null) {
throw new UnsupportedOperationException();
}
Boolean isInvisibleVal = object.isInvisible; // 270
if (isInvisibleVal != null) {
throw new UnsupportedOperationException();
}
Boolean isUnreadVal = object.isUnread; // 280
if (isUnreadVal != null) {
throw new UnsupportedOperationException();
}
Boolean isVerifiedVal = object.isVerified; // 290
if (isVerifiedVal != null) {
size += CodedOutputStream.computeBoolSize(290,
isVerifiedVal.booleanValue());
}
VerificationStatus verificationStatusVal = object.verificationStatus; //
291
if (verificationStatusVal != null) {
size += CodedOutputStream.computeInt32Size(291,
verificationStatusVal.getNumber());
}
Boolean isExtendedMatchVal = object.isExtendedMatch; // 300
if (isExtendedMatchVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasSppVal = object.hasSpp; // 301
if (hasSppVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasPaidVipVal = object.hasPaidVip; // 302
if (hasPaidVipVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasRiseupVal = object.hasRiseup; // 303
if (hasRiseupVal != null) {
throw new UnsupportedOperationException();
}
String lastRiseupTimeMessageVal = object.lastRiseupTimeMessage; // 304
if (lastRiseupTimeMessageVal != null) {
throw new UnsupportedOperationException();
}
String matchExtenderIdVal = object.matchExtenderId; // 305
if (matchExtenderIdVal != null) {
throw new UnsupportedOperationException();
}
Integer photoCountVal = object.photoCount; // 310
if (photoCountVal != null) {
throw new UnsupportedOperationException();
}
Integer videoCountVal = object.videoCount; // 311
if (videoCountVal != null) {
throw new UnsupportedOperationException();
}
ExternalProvider personalInfoSourceVal = object.personalInfoSource; // 320

if (personalInfoSourceVal != null) {
throw new UnsupportedOperationException();
}
OnlineStatus onlineStatusVal = object.onlineStatus; // 330
if (onlineStatusVal != null) {
throw new UnsupportedOperationException();
}
String onlineStatusTextVal = object.onlineStatusText; // 331
if (onlineStatusTextVal != null) {
throw new UnsupportedOperationException();
}
Long onlineLastTimestampVal = object.onlineLastTimestamp; // 332
if (onlineLastTimestampVal != null) {
throw new UnsupportedOperationException();
}
Photo profilePhotoVal = object.profilePhoto; // 340
if (profilePhotoVal != null) {
throw new UnsupportedOperationException();
}
Popularity popularityVal = object.popularity; // 350
if (popularityVal != null) {
throw new UnsupportedOperationException();
}
String wishVal = object.wish; // 360
if (wishVal != null) {
throw new UnsupportedOperationException();
}
List<Album> albumsVal = object.albums; // 370
if (albumsVal != null) {
throw new UnsupportedOperationException();
}
List<MusicService> musicServicesVal = object.musicServices; // 380
if (musicServicesVal != null) {
throw new UnsupportedOperationException();
}
Boolean musicServicesAvailableVal = object.musicServicesAvailable; // 381
if (musicServicesAvailableVal != null) {
throw new UnsupportedOperationException();
}
Integer interestsTotalVal = object.interestsTotal; // 400
if (interestsTotalVal != null) {
throw new UnsupportedOperationException();
}
Integer interestsInCommonVal = object.interestsInCommon; // 410
if (interestsInCommonVal != null) {
throw new UnsupportedOperationException();
}
List<Interest> interestsVal = object.interests; // 420
if (interestsVal != null) {
throw new UnsupportedOperationException();
}
BumpedInto bumpedIntoVal = object.bumpedInto; // 430
if (bumpedIntoVal != null) {
throw new UnsupportedOperationException();
}
List<BumpedInto> bumpedIntoPlacesVal = object.bumpedIntoPlaces; // 431
if (bumpedIntoPlacesVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasBumpedIntoPlacesVal = object.hasBumpedIntoPlaces; // 432
if (hasBumpedIntoPlacesVal != null) {
throw new UnsupportedOperationException();
}
List<Award> awardsVal = object.awards; // 440
if (awardsVal != null) {
throw new UnsupportedOperationException();
}
List<SocialNetworkInfo> socialNetworksVal = object.socialNetworks; // 460
if (socialNetworksVal != null) {
throw new UnsupportedOperationException();
}
ProfileScore profileScoreVal = object.profileScore; // 470
if (profileScoreVal != null) {
throw new UnsupportedOperationException();
}
Integer profileScoreNumericVal = object.profileScoreNumeric; // 471
if (profileScoreNumericVal != null) {
throw new UnsupportedOperationException();
}
List<Language> spokenLanguagesVal = object.spokenLanguages; // 480
if (spokenLanguagesVal != null) {
throw new UnsupportedOperationException();
}
List<ProfileField> profileFieldsVal = object.profileFields; // 490
if (profileFieldsVal != null) {
throw new UnsupportedOperationException();
}
String profileFieldsDescriptionVal = object.profileFieldsDescription; //
491
if (profileFieldsDescriptionVal != null) {
throw new UnsupportedOperationException();
}
String[] displayedAboutMeVal = object.displayedAboutMe; // 492
if (displayedAboutMeVal != null) {
throw new UnsupportedOperationException();
}
ProfileSummary profileSummaryVal = object.profileSummary; // 493
if (profileSummaryVal != null) {
throw new UnsupportedOperationException();
}
SocialFriendsConnectionsBlock friendsConnectionsVal =
object.friendsConnections; // 500
if (friendsConnectionsVal != null) {
throw new UnsupportedOperationException();
}
String friendsInCommonTextVal = object.friendsInCommonText; // 501
if (friendsInCommonTextVal != null) {
throw new UnsupportedOperationException();
}
Integer friendsInCommonVal = object.friendsInCommon; // 510
if (friendsInCommonVal != null) {
throw new UnsupportedOperationException();
}
List<CommonPlace> placesInCommonVal = object.placesInCommon; // 511
if (placesInCommonVal != null) {
throw new UnsupportedOperationException();
}
Integer placesInCommonTotalVal = object.placesInCommonTotal; // 512
if (placesInCommonTotalVal != null) {
throw new UnsupportedOperationException();
}
List<ExternalProvider> commonPlacesImportProvidersVal =
object.commonPlacesImportProviders; // 513
if (commonPlacesImportProvidersVal != null) {
throw new UnsupportedOperationException();
}
Integer distanceVal = object.distance; // 520
if (distanceVal != null) {
throw new UnsupportedOperationException();
}
String distanceLongVal = object.distanceLong; // 530
if (distanceLongVal != null) {
throw new UnsupportedOperationException();
}
String distanceShortVal = object.distanceShort; // 540
if (distanceShortVal != null) {
throw new UnsupportedOperationException();
}
VoteResultType myVoteVal = object.myVote; // 550
if (myVoteVal != null) {
throw new UnsupportedOperationException();
}
VoteResultType theirVoteVal = object.theirVote; // 560
if (theirVoteVal != null) {
throw new UnsupportedOperationException();
}
String matchMessageVal = object.matchMessage; // 570
if (matchMessageVal != null) {
throw new UnsupportedOperationException();
}
Boolean isMatchVal = object.isMatch; // 580
if (isMatchVal != null) {
throw new UnsupportedOperationException();
}
Long matchDateVal = object.matchDate; // 581
if (matchDateVal != null) {
throw new UnsupportedOperationException();
}
GameMode matchModeVal = object.matchMode; // 582
if (matchModeVal != null) {
throw new UnsupportedOperationException();
}
Boolean isCrushVal = object.isCrush; // 583
if (isCrushVal != null) {
throw new UnsupportedOperationException();
}
GameMode theirVoteModeVal = object.theirVoteMode; // 584
if (theirVoteModeVal != null) {
throw new UnsupportedOperationException();
}
RematchAction rematchActionVal = object.rematchAction; // 585
if (rematchActionVal != null) {
throw new UnsupportedOperationException();
}
Boolean isSparkVal = object.isSpark; // 586
if (isSparkVal != null) {
throw new UnsupportedOperationException();
}
GoalProgress preMatchTimeLeftVal = object.preMatchTimeLeft; // 590
if (preMatchTimeLeftVal != null) {
throw new UnsupportedOperationException();
}
GoalProgress replyTimeLeftVal = object.replyTimeLeft; // 591
if (replyTimeLeftVal != null) {
throw new UnsupportedOperationException();
}
Long connectionExpiredTimestampVal = object.connectionExpiredTimestamp; //
592
if (connectionExpiredTimestampVal != null) {
throw new UnsupportedOperationException();
}
Boolean isBlockedVal = object.isBlocked; // 600
if (isBlockedVal != null) {
throw new UnsupportedOperationException();
}
Boolean isFavouriteVal = object.isFavourite; // 610
if (isFavouriteVal != null) {
throw new UnsupportedOperationException();
}
Boolean favouritedYouVal = object.favouritedYou; // 611
if (favouritedYouVal != null) {
throw new UnsupportedOperationException();
}
Boolean isFriendVal = object.isFriend; // 620
if (isFriendVal != null) {
throw new UnsupportedOperationException();
}
Boolean isConversationVal = object.isConversation; // 630
if (isConversationVal != null) {
throw new UnsupportedOperationException();
}
Integer unreadMessagesCountVal = object.unreadMessagesCount; // 640
if (unreadMessagesCountVal != null) {
throw new UnsupportedOperationException();
}
ChatMessageType lastMessageTypeVal = object.lastMessageType; // 641
if (lastMessageTypeVal != null) {
throw new UnsupportedOperationException();
}
ChatMessage lastMessageVal = object.lastMessage; // 642
if (lastMessageVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowAddToFavouritesVal = object.allowAddToFavourites; // 650
if (allowAddToFavouritesVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowChatVal = object.allowChat; // 660
if (allowChatVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowQuickChatVal = object.allowQuickChat; // 661
if (allowQuickChatVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowChatFromMatchScreenVal = object.allowChatFromMatchScreen; //
662
if (allowChatFromMatchScreenVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowVotingVal = object.allowVoting; // 670
if (allowVotingVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasMobileAppVal = object.hasMobileApp; // 680
if (hasMobileAppVal != null) {
throw new UnsupportedOperationException();
}
String voteHintVal = object.voteHint; // 681
if (voteHintVal != null) {
throw new UnsupportedOperationException();
}
PopularityLevel popularityLevelVal = object.popularityLevel; // 690
if (popularityLevelVal != null) {
throw new UnsupportedOperationException();
}
Integer popularityPnbPlaceVal = object.popularityPnbPlace; // 691
if (popularityPnbPlaceVal != null) {
throw new UnsupportedOperationException();
}
Integer popularityVisitorsTodayVal = object.popularityVisitorsToday; // 692

if (popularityVisitorsTodayVal != null) {
throw new UnsupportedOperationException();
}
Integer popularityVisitorsMonthVal = object.popularityVisitorsMonth; // 693

if (popularityVisitorsMonthVal != null) {
throw new UnsupportedOperationException();
}
String displayMessageVal = object.displayMessage; // 700
if (displayMessageVal != null) {
throw new UnsupportedOperationException();
}
String displayImageVal = object.displayImage; // 705
if (displayImageVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock voteSharingPromoVal = object.voteSharingPromo; // 710
if (voteSharingPromoVal != null) {
throw new UnsupportedOperationException();
}
List<SocialSharingProvider> voteSharingProvidersVal =
object.voteSharingProviders; // 720
if (voteSharingProvidersVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSmileVal = object.allowSmile; // 730
if (allowSmileVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSendGiftVal = object.allowSendGift; // 731
if (allowSendGiftVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowCrushVal = object.allowCrush; // 732
if (allowCrushVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSparkVal = object.allowSpark; // 733
if (allowSparkVal != null) {
throw new UnsupportedOperationException();
}
Integer secretCommentCountVal = object.secretCommentCount; // 740
if (secretCommentCountVal != null) {
throw new UnsupportedOperationException();
}
List<SecretComment> secretCommentPreviewVal =
object.secretCommentPreview; // 741
if (secretCommentPreviewVal != null) {
throw new UnsupportedOperationException();
}
Boolean isSecretCommentsEnabledVal = object.isSecretCommentsEnabled; // 742

if (isSecretCommentsEnabledVal != null) {
throw new UnsupportedOperationException();
}
ReceivedGifts receivedGiftsVal = object.receivedGifts; // 750
if (receivedGiftsVal != null) {
throw new UnsupportedOperationException();
}
Boolean isVisitorVal = object.isVisitor; // 759
if (isVisitorVal != null) {
throw new UnsupportedOperationException();
}
ClientSource cameFromVal = object.cameFrom; // 760
if (cameFromVal != null) {
throw new UnsupportedOperationException();
}
String cameFromTextVal = object.cameFromText; // 761
if (cameFromTextVal != null) {
throw new UnsupportedOperationException();
}
Boolean isInappPromoPartnerVal = object.isInappPromoPartner; // 762
if (isInappPromoPartnerVal != null) {
throw new UnsupportedOperationException();
}
PaymentProductType cameFromProductVal = object.cameFromProduct; // 763
if (cameFromProductVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock cameFromProductPromoVal = object.cameFromProductPromo; // 764
if (cameFromProductPromoVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSharingVal = object.allowSharing; // 770
if (allowSharingVal != null) {
throw new UnsupportedOperationException();
}
Long lastActiveVal = object.lastActive; // 780
if (lastActiveVal != null) {
throw new UnsupportedOperationException();
}
String lastActiveStringVal = object.lastActiveString; // 781
if (lastActiveStringVal != null) {
throw new UnsupportedOperationException();
}
Boolean isHighlightedVal = object.isHighlighted; // 790
if (isHighlightedVal != null) {
throw new UnsupportedOperationException();
}
UnitedFriends unitedFriendsVal = object.unitedFriends; // 800
if (unitedFriendsVal != null) {
throw new UnsupportedOperationException();
}
Integer crowdSizeVal = object.crowdSize; // 801
if (crowdSizeVal != null) {
throw new UnsupportedOperationException();
}
Boolean isRemovedVal = object.isRemoved; // 810
if (isRemovedVal != null) {
throw new UnsupportedOperationException();
}
Long updateTimestampVal = object.updateTimestamp; // 820
if (updateTimestampVal != null) {
throw new UnsupportedOperationException();
}
Long sortTimestampVal = object.sortTimestamp; // 830
if (sortTimestampVal != null) {
throw new UnsupportedOperationException();
}
Long spotlightIdVal = object.spotlightId; // 840
if (spotlightIdVal != null) {
throw new UnsupportedOperationException();
}
String encryptedUserIdVal = object.encryptedUserId; // 850
if (encryptedUserIdVal != null) {
throw new UnsupportedOperationException();
}
Boolean isLockedVal = object.isLocked; // 860
if (isLockedVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock promoBlockAfterLastPhotoVal =
object.promoBlockAfterLastPhoto; // 870
if (promoBlockAfterLastPhotoVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock profileBlockerPromoVal = object.profileBlockerPromo; // 871
if (profileBlockerPromoVal != null) {
throw new UnsupportedOperationException();
}
Integer accentColorVal = object.accentColor; // 880
if (accentColorVal != null) {
throw new UnsupportedOperationException();
}
GameMode gameModeVal = object.gameMode; // 890
if (gameModeVal != null) {
throw new UnsupportedOperationException();
}
Boolean gameModeEnabledVal = object.gameModeEnabled; // 891
if (gameModeEnabledVal != null) {
throw new UnsupportedOperationException();
}
Boolean isTeleportedVal = object.isTeleported; // 900
if (isTeleportedVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowWebrtcCallVal = object.allowWebrtcCall; // 910
if (allowWebrtcCallVal != null) {
throw new UnsupportedOperationException();
}
WebrtcStatus webrtcStatusVal = object.webrtcStatus; // 911
if (webrtcStatusVal != null) {
throw new UnsupportedOperationException();
}
FolderTypes originFolderVal = object.originFolder; // 920
if (originFolderVal != null) {
throw new UnsupportedOperationException();
}
UserType typeVal = object.type; // 930
if (typeVal != null) {
throw new UnsupportedOperationException();
}
QuestionsInfo questionsInfoVal = object.questionsInfo; // 1000
if (questionsInfoVal != null) {
throw new UnsupportedOperationException();
}
String vibeeNumberVal = object.vibeeNumber; // 1100
if (vibeeNumberVal != null) {
throw new UnsupportedOperationException();
}
List<UserSection> sectionsVal = object.sections; // 1110
if (sectionsVal != null) {
throw new UnsupportedOperationException();
}
Boolean isTransientVal = object.isTransient; // 1120
if (isTransientVal != null) {
throw new UnsupportedOperationException();
}
LookalikesInfo lookalikesInfoVal = object.lookalikesInfo; // 1130
if (lookalikesInfoVal != null) {
throw new UnsupportedOperationException();
}
List<Experience> jobsVal = object.jobs; // 1140
if (jobsVal != null) {
throw new UnsupportedOperationException();
}
List<Experience> educationsVal = object.educations; // 1150
if (educationsVal != null) {
throw new UnsupportedOperationException();
}
QuickChat quickChatVal = object.quickChat; // 1200
if (quickChatVal != null) {
throw new UnsupportedOperationException();
}
String experimentalWhatsMyChancesVal =
object.experimentalWhatsMyChances; // 10001
if (experimentalWhatsMyChancesVal != null) {
throw new UnsupportedOperationException();
}
Boolean experimentalIsHaloedVal = object.experimentalIsHaloed; // 10002
if (experimentalIsHaloedVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock experimentalWhatsMyChancesPromoVal =
object.experimentalWhatsMyChancesPromo; // 10003
if (experimentalWhatsMyChancesPromoVal != null) {
throw new UnsupportedOperationException();
}
Boolean experimentalUserHasDoubledPictureVal =
object.experimentalUserHasDoubledPicture; // 10004
if (experimentalUserHasDoubledPictureVal != null) {
throw new UnsupportedOperationException();
}
String experimentalCrushCreditsCostVal =
object.experimentalCrushCreditsCost; // 10005
if (experimentalCrushCreditsCostVal != null) {
throw new UnsupportedOperationException();
}

return size;
}

private int computeUserFieldFilterSize(UserFieldFilter object) {


int c;
int size = 0;
List<UserField> projectionVal = object.projection;
if (projectionVal != null) {
for (c = 0; c < projectionVal.size(); c++) {
size += CodedOutputStream.computeInt32Size(10, ((UserField)
projectionVal.get(c)).getNumber());
}
}
List<ServerGetAlbum> requestAlbumsVal = object.requestAlbums; // 20
if (requestAlbumsVal != null) {
throw new UnsupportedOperationException();
}
ServerInterestsGet requestInterestsVal = object.requestInterests; // 30
if (requestInterestsVal != null) {
size += CodedOutputStream.computeBytesSize(30,
computeServerInterestsGetSize(requestInterestsVal));
}
PhotoSizeSpec profilePhotoSizeVal = object.profilePhotoSize; // 40
if (profilePhotoSizeVal != null) {
throw new UnsupportedOperationException();
}
PhotoRequest profilePhotoRequestVal = object.profilePhotoRequest; // 41
if (profilePhotoRequestVal != null) {
throw new UnsupportedOperationException();
}
Integer commonPlaceCountVal = object.commonPlaceCount; // 50
if (commonPlaceCountVal != null) {
throw new UnsupportedOperationException();
}
List<UnitedFriendsFilter> unitedFriendsFilterVal =
object.unitedFriendsFilter; // 60
if (unitedFriendsFilterVal != null) {
throw new UnsupportedOperationException();
}
ClientSource clientSourceVal = object.clientSource;// 70
if (clientSourceVal != null) {
throw new UnsupportedOperationException();
}
List<ProfileOptionType> profileOptionTypesVal =
object.profileOptionTypes; // 80
if (profileOptionTypesVal != null) {
throw new UnsupportedOperationException();
}
ServerGetMusicServices requestMusicServicesVal =
object.requestMusicServices; // 90
if (requestMusicServicesVal != null) {
throw new UnsupportedOperationException();
}
List<UserVerificationMethodType> verificationMethodsVal =
object.verificationMethods; // 100
if (verificationMethodsVal != null) {
throw new UnsupportedOperationException();
}
GameMode gameModeVal = object.gameMode; // 110
if (gameModeVal != null) {
throw new UnsupportedOperationException();
}
QuickChatRequest quickChatRequestVal = object.quickChatRequest; // 120
if (quickChatRequestVal != null) {
throw new UnsupportedOperationException();
}

return size;
}

private int computeCreditsRewardsSize(CreditsRewards object) {


int size = 0;
String descriptionVal = object.description;
if (descriptionVal != null) {
size = 0 + computeStringSize(1, descriptionVal);
}
Integer currentIndexVal = object.currentIndex;
if (currentIndexVal != null) {
size += CodedOutputStream.computeInt32Size(2,
currentIndexVal.intValue());
}
Vector circlesList = object.circles;
if (circlesList != null) {
for (int c = 0; c < circlesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(3,
computeCircleDescriptionSize((CircleDescription) circlesList.elementAt(c)));
}
}
return size;
}

private int computeDeleteAccountReasonTypeSize(DeleteAccountReasonType object)


{
return (0 + computeStringSize(1, object.reasonCode)) + computeStringSize(2,
object.text);
}

private int computeDeleteChatMessageSize(DeleteChatMessage object) {


int size = 0;
String uidVal = object.uid;
if (uidVal != null) {
size = 0 + computeStringSize(1, uidVal);
}
DeleteChatMessageReason deleteReasonVal = object.deleteReason;
if (deleteReasonVal != null) {
return size + CodedOutputStream.computeInt32Size(2,
deleteReasonVal.getNumber());
}
return size;
}

private int computeDeleteChatMessageResultSize(DeleteChatMessageResult object)


{
Boolean successVal = object.success;
if (successVal != null) {
return 0 + CodedOutputStream.computeBoolSize(1,
successVal.booleanValue());
}
return 0;
}

private int computeExternalEndpointSize(ExternalEndpoint object) {


int size = 0;
ExternalEndpointType typeVal = object.type;
if (typeVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, typeVal.getNumber());
}
String urlVal = object.url;
if (urlVal != null) {
return size + computeStringSize(2, urlVal);
}
return size;
}

private int computeExternalProviderSize(ExternalProvider object) {


int size = 0;
String idVal = object.id;
if (idVal != null) {
size = 0 + computeStringSize(1, idVal);
}
String displayNameVal = object.displayName;
if (displayNameVal != null) {
size += computeStringSize(2, displayNameVal);
}
String logoUrlVal = object.logoUrl;
if (logoUrlVal != null) {
size += computeStringSize(3, logoUrlVal);
}
ExternalProviderType typeVal = object.type;
if (typeVal != null) {
size += CodedOutputStream.computeInt32Size(4, typeVal.getNumber());
}
ExternalProviderAuthData authDataVal = object.authData;
if (authDataVal != null) {
return size + CodedOutputStream.computeBytesSize(5,
computeExternalProviderAuthDataSize(authDataVal));
}
return size;
}

private int computeExternalProviderAuthDataSize(ExternalProviderAuthData


object) {
int size = 0;
ExternalProviderAuthType typeVal = object.type;
if (typeVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, typeVal.getNumber());
}
String oauthUrlVal = object.oauthUrl;
if (oauthUrlVal != null) {
size += computeStringSize(2, oauthUrlVal);
}
String appIdVal = object.appId;
if (appIdVal != null) {
size += computeStringSize(3, appIdVal);
}
String appKeyVal = object.appKey;
if (appKeyVal != null) {
size += computeStringSize(4, appKeyVal);
}
String appSecretVal = object.appSecret;
if (appSecretVal != null) {
return size + computeStringSize(5, appSecretVal);
}
return size;
}

private int
computeExternalProviderImportProgressSize(ExternalProviderImportProgress object) {
int size = 0;
String importIdVal = object.importId;
if (importIdVal != null) {
size = 0 + computeStringSize(1, importIdVal);
}
Boolean completeVal = object.complete;
if (completeVal != null) {
size += CodedOutputStream.computeBoolSize(2,
completeVal.booleanValue());
}
Boolean successVal = object.success;
if (successVal != null) {
size += CodedOutputStream.computeBoolSize(3,
successVal.booleanValue());
}
FormFailure formVal = object.form;
if (formVal != null) {
size += CodedOutputStream.computeBytesSize(4,
computeFormFailureSize(formVal));
}
ContactImportProgress contactImportProgressDataVal =
object.contactImportProgressData;
if (contactImportProgressDataVal != null) {
size += CodedOutputStream.computeBytesSize(5,
computeContactImportProgressSize(contactImportProgressDataVal));
}
PhotoImportProgress photoImportProgressDataVal =
object.photoImportProgressData;
if (photoImportProgressDataVal != null) {
return size + CodedOutputStream.computeBytesSize(6,
computePhotoImportProgressSize(photoImportProgressDataVal));
}
return size;
}

private int
computeExternalProviderImportResultSize(ExternalProviderImportResult object) {
int size = 0;
Boolean successVal = object.success;
if (successVal != null) {
size = 0 + CodedOutputStream.computeBoolSize(1,
successVal.booleanValue());
}
PhotoImportResult photoImportResultDataVal = object.photoImportResultData;
if (photoImportResultDataVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computePhotoImportResultSize(photoImportResultDataVal));
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
return size + computeStringSize(3, displayMessageVal);
}
return size;
}

private int
computeExternalProviderSecurityCredentialsSize(ExternalProviderSecurityCredentials
object) {
int size = 0;
String providerIdVal = object.providerId;
if (providerIdVal != null) {
size = 0 + computeStringSize(1, providerIdVal);
}
ExternalProviderContext contextVal = object.context;
if (contextVal != null) {
size += CodedOutputStream.computeInt32Size(2, contextVal.getNumber());
}
String usernameVal = object.username;
if (usernameVal != null) {
size += computeStringSize(3, usernameVal);
}
String passwordVal = object.password;
if (passwordVal != null) {
size += computeStringSize(4, passwordVal);
}
String oauthTokenVal = object.oauthToken;
if (oauthTokenVal != null) {
size += computeStringSize(5, oauthTokenVal);
}
Boolean nativelyAuthenticatedVal = object.nativelyAuthenticated;
if (nativelyAuthenticatedVal != null) {
size += CodedOutputStream.computeBoolSize(6,
nativelyAuthenticatedVal.booleanValue());
}
String redirectUriVal = object.redirectUri;
if (redirectUriVal != null) {
return size + computeStringSize(7, redirectUriVal);
}
return size;
}

private int computeExternalProvidersSize(ExternalProviders object) {


int size = 0;
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeExternalProviderSize((ExternalProvider) providersList.elementAt(c)));
}
}
ExternalProviderContext contextVal = object.context;
if (contextVal != null) {
size += CodedOutputStream.computeInt32Size(2, contextVal.getNumber());
}
String displayStringVal = object.displayString;
if (displayStringVal != null) {
size += computeStringSize(3, displayStringVal);
}
String headingStringVal = object.headingString;
if (headingStringVal != null) {
size += computeStringSize(4, headingStringVal);
}
String titleVal = object.title;
if (titleVal != null) {
size += computeStringSize(5, titleVal);
}
ImportGoalProgress importGoalProgressVal = object.importGoalProgress;
if (importGoalProgressVal != null) {
return size + CodedOutputStream.computeBytesSize(6,
computeImportGoalProgressSize(importGoalProgressVal));
}
return size;
}

private int computeExternalStatsProviderSize(ExternalStatsProvider object) {


int size = 0;
ExternalStatsProviderType typeVal = object.type;
if (typeVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, typeVal.getNumber());
}
String urlVal = object.url;
if (urlVal != null) {
size += computeStringSize(2, urlVal);
}
Integer maximumPoolSizeVal = object.maximumPoolSize;
if (maximumPoolSizeVal != null) {
size += CodedOutputStream.computeInt32Size(3,
maximumPoolSizeVal.intValue());
}
Integer maximumTimeoutVal = object.maximumTimeout;
if (maximumTimeoutVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
maximumTimeoutVal.intValue());
}
return size;
}

private int computeFeaturePrePurchaseInfoSize(FeaturePrePurchaseInfo object) {


int size = 0;
FeatureType featureVal = object.feature;
if (featureVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
featureVal.getNumber());
}
String titleVal = object.title;
if (titleVal != null) {
size += computeStringSize(2, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(3, descriptionVal);
}
String actionVal = object.action;
if (actionVal != null) {
size += computeStringSize(4, actionVal);
}
String costVal = object.cost;
if (costVal != null) {
size += computeStringSize(5, costVal);
}
Album albumVal = object.album;
if (albumVal != null) {
size += CodedOutputStream.computeBytesSize(6,
computeAlbumSize(albumVal));
}
String headerVal = object.header;
if (headerVal != null) {
size += computeStringSize(7, headerVal);
}
ApplicationFeature applicationFeatureVal = object.applicationFeature;
if (applicationFeatureVal != null) {
return size + CodedOutputStream.computeBytesSize(8,
computeApplicationFeatureSize(applicationFeatureVal));
}
return size;
}

private int computeFeatureProductListSize(FeatureProductList object) {


int c;
int size = 0 + CodedOutputStream.computeInt32Size(1,
object.feature.getNumber());
Vector productsList = object.products;
if (productsList != null) {
for (c = 0; c < productsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeProductSize((Product) productsList.elementAt(c)));
}
}
Vector providerNameList = object.providerName;
if (providerNameList != null) {
for (c = 0; c < providerNameList.size(); c++) {
size += CodedOutputStream.computeBytesSize(3,
computeProviderNameSize((ProviderName) providerNameList.elementAt(c)));
}
}
String serviceTitleVal = object.serviceTitle;
if (serviceTitleVal != null) {
size += computeStringSize(4, serviceTitleVal);
}
String serviceActionVal = object.serviceAction;
if (serviceActionVal != null) {
size += computeStringSize(5, serviceActionVal);
}
String providerSelectionTitleVal = object.providerSelectionTitle;
if (providerSelectionTitleVal != null) {
size += computeStringSize(6, providerSelectionTitleVal);
}
String productSelectionTitleVal = object.productSelectionTitle;
if (productSelectionTitleVal != null) {
size += computeStringSize(7, productSelectionTitleVal);
}
String featureDescriptionVal = object.featureDescription;
if (featureDescriptionVal != null) {
size += computeStringSize(8, featureDescriptionVal);
}
String autoTopUpTextVal = object.autoTopUpText;
if (autoTopUpTextVal != null) {
return size + computeStringSize(9, autoTopUpTextVal);
}
return size;
}

private int computeFieldErrorSize(FieldError object) {


return (0 + computeStringSize(1, object.fieldName)) + computeStringSize(2,
object.error);
}

private int computeFinishContactImportSize(FinishContactImport object) {


int size = 0;
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhonebookContactSize((PhonebookContact) contactsList.elementAt(c)));
}
}
Boolean smsAlreadySentVal = object.smsAlreadySent;
if (smsAlreadySentVal != null) {
size += CodedOutputStream.computeBoolSize(2,
smsAlreadySentVal.booleanValue());
}
String facebookRequestIdVal = object.facebookRequestId;
if (facebookRequestIdVal != null) {
return size + computeStringSize(3, facebookRequestIdVal);
}
return size;
}

private int computeFinishPhotoImportSize(FinishPhotoImport object) {


int size = 0;
Vector photosList = object.photos;
if (photosList != null) {
for (int c = 0; c < photosList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhotoSize((Photo) photosList.elementAt(c)));
}
}
String photoToReplaceVal = object.photoToReplace;
if (photoToReplaceVal != null) {
return size + computeStringSize(2, photoToReplaceVal);
}
return size;
}

private int computeFolderRequestSize(FolderRequest object) {


int c;
int size = 0;
Vector folderIdList = object.folderId;
if (folderIdList != null) {
for (c = 0; c < folderIdList.size(); c++) {
size += CodedOutputStream.computeInt32Size(1, ((FolderTypes)
folderIdList.elementAt(c)).getNumber());
}
}
Vector personNoticeTypeList = object.personNoticeType;
if (personNoticeTypeList != null) {
for (c = 0; c < personNoticeTypeList.size(); c++) {
size += CodedOutputStream.computeInt32Size(2, ((PersonNoticeType)
personNoticeTypeList.elementAt(c)).getNumber());
}
}
return size;
}

private int computeFormFailureSize(FormFailure object) {


int c;
int size = 0;
Vector errorsList = object.errors;
if (errorsList != null) {
for (c = 0; c < errorsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeFieldErrorSize((FieldError) errorsList.elementAt(c)));
}
}
ServerErrorMessage failureVal = object.failure;
if (failureVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeServerErrorMessageSize(failureVal));
}
String captchaUrlVal = object.captchaUrl;
if (captchaUrlVal != null) {
size += computeStringSize(3, captchaUrlVal);
}
Hashtable formDataVal = object.formData;
if (formDataVal != null) {
size += CodedOutputStream.computeBytesSize(4,
computeHashtableSize(formDataVal));
}
Vector strFormDataList = object.strFormData;
if (strFormDataList != null) {
for (c = 0; c < strFormDataList.size(); c++) {
size += CodedOutputStream.computeBytesSize(5,
computeFormFieldSize((FormField) strFormDataList.elementAt(c)));
}
}
return size;
}

private int computeFormFieldSize(FormField object) {


int size = 0;
String keyVal = object.key;
if (keyVal != null) {
size = 0 + computeStringSize(1, keyVal);
}
String valueVal = object.value;
if (valueVal != null) {
return size + computeStringSize(2, valueVal);
}
return size;
}

private int
computeFriendOrCelebritySharingStatsSize(FriendOrCelebritySharingStats object) {
int size = 0;
String personIdVal = object.personId;
if (personIdVal != null) {
size = 0 + computeStringSize(1, personIdVal);
}
Boolean isCelebrityVal = object.isCelebrity;
if (isCelebrityVal != null) {
size += CodedOutputStream.computeBoolSize(2,
isCelebrityVal.booleanValue());
}
Boolean isHiddenVal = object.isHidden;
if (isHiddenVal != null) {
size += CodedOutputStream.computeBoolSize(3,
isHiddenVal.booleanValue());
}
ExternalProviderType providerIdVal = object.providerId;
if (providerIdVal != null) {
size += CodedOutputStream.computeInt32Size(4,
providerIdVal.getNumber());
}
CelebrityFriendSharing actionVal = object.action;
if (actionVal != null) {
size += CodedOutputStream.computeInt32Size(5, actionVal.getNumber());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(6,
contextVal.getNumber());
}
return size;
}

private int computeFriendsImportAuthDataSize(FriendsImportAuthData object) {


int size = 0;
FriendsImportAuthType typeVal = object.type;
if (typeVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, typeVal.getNumber());
}
String oauthUrlVal = object.oauthUrl;
if (oauthUrlVal != null) {
return size + computeStringSize(2, oauthUrlVal);
}
return size;
}

private int computeFriendsImportProviderSize(FriendsImportProvider object) {


int size = 0;
String idVal = object.id;
if (idVal != null) {
size = 0 + computeStringSize(1, idVal);
}
String displayNameVal = object.displayName;
if (displayNameVal != null) {
size += computeStringSize(2, displayNameVal);
}
FriendsImportAuthData authDataVal = object.authData;
if (authDataVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeFriendsImportAuthDataSize(authDataVal));
}
String nameVal = object.name;
if (nameVal != null) {
size += computeStringSize(4, nameVal);
}
String logoUrlVal = object.logoUrl;
if (logoUrlVal != null) {
return size + computeStringSize(5, logoUrlVal);
}
return size;
}

private int
computeFriendsImportSecurityCredentialsSize(FriendsImportSecurityCredentials
object) {
int size = 0;
String usernameVal = object.username;
if (usernameVal != null) {
size = 0 + computeStringSize(1, usernameVal);
}
String passwordVal = object.password;
if (passwordVal != null) {
size += computeStringSize(2, passwordVal);
}
String oauthTokenVal = object.oauthToken;
if (oauthTokenVal != null) {
return size + computeStringSize(3, oauthTokenVal);
}
return size;
}

private int computeGeoLocationSize(GeoLocation object) {


int size = 0 + computeStringSize(1, object.source);
Float longitudeVal = object.longitude;
if (longitudeVal != null) {
size += CodedOutputStream.computeFloatSize(2,
longitudeVal.floatValue());
}
Float latitudeVal = object.latitude;
if (latitudeVal != null) {
size += CodedOutputStream.computeFloatSize(3,
latitudeVal.floatValue());
}
Double longitudePreciseVal = object.longitudePrecise;
if (longitudePreciseVal != null) {
size += CodedOutputStream.computeDoubleSize(4,
longitudePreciseVal.doubleValue());
}
Double latitudePreciseVal = object.latitudePrecise;
if (latitudePreciseVal != null) {
size += CodedOutputStream.computeDoubleSize(5,
latitudePreciseVal.doubleValue());
}
Boolean isAgpsVal = object.isAgps;
if (isAgpsVal != null) {
size += CodedOutputStream.computeBoolSize(6, isAgpsVal.booleanValue());
}
String uuidVal = object.uuid;
if (uuidVal != null) {
size += computeStringSize(7, uuidVal);
}
Integer accuracyVal = object.accuracy;
if (accuracyVal != null) {
return size + CodedOutputStream.computeInt32Size(8,
accuracyVal.intValue());
}
return size;
}

private int computeGroupSize(Group object) {


return (0 + CodedOutputStream.computeInt32Size(1, object.groupId)) +
computeStringSize(2, object.name);
}

private int computeImportGoalProgressSize(ImportGoalProgress object) {


int size = 0;
Integer numberRequiredVal = object.numberRequired;
if (numberRequiredVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
numberRequiredVal.intValue());
}
Integer numberAlreadyImportedVal = object.numberAlreadyImported;
if (numberAlreadyImportedVal != null) {
size += CodedOutputStream.computeInt32Size(2,
numberAlreadyImportedVal.intValue());
}
String numberAlreadyImportedStringVal = object.numberAlreadyImportedString;
if (numberAlreadyImportedStringVal != null) {
size += computeStringSize(3, numberAlreadyImportedStringVal);
}
Vector progressStopsList = object.progressStops;
if (progressStopsList != null) {
for (int c = 0; c < progressStopsList.size(); c++) {
size += computeStringSize(4, (String)
progressStopsList.elementAt(c));
}
}
String descriptionVal = object.description;
if (descriptionVal != null) {
return size + computeStringSize(5, descriptionVal);
}
return size;
}

private int computeInterestSize(Interest object) {


int size = 0;
Integer interestIdVal = object.interestId;
if (interestIdVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
interestIdVal.intValue());
}
size += computeStringSize(2, object.name);
Integer groupIdVal = object.groupId;
if (groupIdVal != null) {
size += CodedOutputStream.computeInt32Size(3, groupIdVal.intValue());
}
Boolean isMatchedVal = object.isMatched;
if (isMatchedVal != null) {
size += CodedOutputStream.computeBoolSize(4,
isMatchedVal.booleanValue());
}
Boolean isHiddenVal = object.isHidden;
if (isHiddenVal != null) {
size += CodedOutputStream.computeBoolSize(5,
isHiddenVal.booleanValue());
}
Boolean isRejectedVal = object.isRejected;
if (isRejectedVal != null) {
return size + CodedOutputStream.computeBoolSize(6,
isRejectedVal.booleanValue());
}
return size;
}

private int computeInterestsGroupsSize(InterestsGroups object) {


int size = 0;
Vector groupsList = object.groups;
if (groupsList != null) {
for (int c = 0; c < groupsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeGroupSize((Group) groupsList.elementAt(c)));
}
}
return size;
}

private int computeInterestsUpdateSize(InterestsUpdate object) {


int c;
int size = 0;
Vector addList = object.add;
if (addList != null) {
for (c = 0; c < addList.size(); c++) {
size += CodedOutputStream.computeInt32Size(1, ((Integer)
addList.elementAt(c)).intValue());
}
}
Vector removeList = object.remove;
if (removeList != null) {
for (c = 0; c < removeList.size(); c++) {
size += CodedOutputStream.computeInt32Size(2, ((Integer)
removeList.elementAt(c)).intValue());
}
}
InterestAddSource sourceVal = object.source;
if (sourceVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
sourceVal.getNumber());
}
return size;
}

private int computeLanguageSize(Language object) {


int size = (0 + CodedOutputStream.computeInt32Size(1, object.uid)) +
computeStringSize(2, object.name);
LanguageLevel levelVal = object.level;
if (levelVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
levelVal.getNumber());
}
return size;
}

private int computeListSectionSize(ListSection object) {


int c;
int size = 0 + computeStringSize(1, object.sectionId);
String nameVal = object.name;
if (nameVal != null) {
size += computeStringSize(2, nameVal);
}
Integer totalCountVal = object.totalCount;
if (totalCountVal != null) {
size += CodedOutputStream.computeInt32Size(3,
totalCountVal.intValue());
}
Vector userList = object.user;
if (userList != null) {
for (c = 0; c < userList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeSectionUserSize((SectionUser) userList.elementAt(c)));
}
}
Boolean lastBlockVal = object.lastBlock;
if (lastBlockVal != null) {
size += CodedOutputStream.computeBoolSize(5,
lastBlockVal.booleanValue());
}
ApplicationFeature addFeatureVal = object.addFeature;
if (addFeatureVal != null) {
size += CodedOutputStream.computeBytesSize(6,
computeApplicationFeatureSize(addFeatureVal));
}
ApplicationFeature sectionFeatureVal = object.sectionFeature;
if (sectionFeatureVal != null) {
size += CodedOutputStream.computeBytesSize(7,
computeApplicationFeatureSize(sectionFeatureVal));
}
ApplicationFeature userFeatureVal = object.userFeature;
if (userFeatureVal != null) {
size += CodedOutputStream.computeBytesSize(8,
computeApplicationFeatureSize(userFeatureVal));
}
Vector allowedActionsList = object.allowedActions;
if (allowedActionsList != null) {
for (c = 0; c < allowedActionsList.size(); c++) {
size += CodedOutputStream.computeInt32Size(9, ((SectionActionType)
allowedActionsList.elementAt(c)).getNumber());
}
}
return size;
}

private int computeMetaTagSize(MetaTag object) {


int size = 0;
String propertyVal = object.property;
if (propertyVal != null) {
size = 0 + computeStringSize(1, propertyVal);
}
String contentVal = object.content;
if (contentVal != null) {
return size + computeStringSize(2, contentVal);
}
return size;
}

private int computeModifiedObjectSize(ModifiedObject object) {


return (0 + computeStringSize(1, object.uid)) +
CodedOutputStream.computeInt64Size(2, object.dateModified);
}

private int computeMultimediaSize(Multimedia object) {


int size = (0 + CodedOutputStream.computeInt32Size(1,
object.format.getNumber())) + CodedOutputStream.computeBytesSize(2,
computeMultimediaVisibilitySize(object.visibility));
Object dataVal = object.data;
if (dataVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeByteArraySize(dataVal));
}
String idVal = object.id;
if (idVal != null) {
size += computeStringSize(4, idVal);
}
String urlVal = object.url;
if (urlVal != null) {
size += computeStringSize(5, urlVal);
}
Photo photoVal = object.photo;
if (photoVal != null) {
return size + CodedOutputStream.computeBytesSize(6,
computePhotoSize(photoVal));
}
return size;
}

private int computeMultimediaConfigSize(MultimediaConfig object) {


int size = 0;
Vector visibilityList = object.visibility;
if (visibilityList != null) {
for (int c = 0; c < visibilityList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeMultimediaVisibilitySize((MultimediaVisibility)
visibilityList.elementAt(c)));
}
}
return size;
}

private int computeMultimediaSettingsSize(MultimediaSettings object) {


int size = 0;
ApplicationFeature featureVal = object.feature;
if (featureVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computeApplicationFeatureSize(featureVal));
}
MultimediaConfig multimediaConfigVal = object.multimediaConfig;
if (multimediaConfigVal != null) {
return size + CodedOutputStream.computeBytesSize(2,
computeMultimediaConfigSize(multimediaConfigVal));
}
return size;
}

private int computeMultimediaVisibilitySize(MultimediaVisibility object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.visibilityType.getNumber());
Integer secondsVal = object.seconds;
if (secondsVal != null) {
size += CodedOutputStream.computeInt32Size(2, secondsVal.intValue());
}
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
return size + computeStringSize(3, displayValueVal);
}
return size;
}

private int computeNoMoreSearchResultsSize(NoMoreSearchResults object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.searchContext.getNumber());
Boolean canFilterExpandVal = object.canFilterExpand;
if (canFilterExpandVal != null) {
return size + CodedOutputStream.computeBoolSize(2,
canFilterExpandVal.booleanValue());
}
return size;
}

private int computeOfferwallStatsSize(OfferwallStats object) {


ClientSource sourceScreenVal = object.sourceScreen;
if (sourceScreenVal != null) {
return 0 + CodedOutputStream.computeInt32Size(2,
sourceScreenVal.getNumber());
}
return 0;
}

private int computePaymentProviderProductSize(PaymentProviderProduct object) {


int size = (0 + CodedOutputStream.computeInt32Size(1,
object.provider.getNumber())) + computeStringSize(2, object.displayPrice);
String externalIdVal = object.externalId;
if (externalIdVal != null) {
size += computeStringSize(3, externalIdVal);
}
String displayNameVal = object.displayName;
if (displayNameVal != null) {
size += computeStringSize(4, displayNameVal);
}
Boolean isTopUpPossibleVal = object.isTopUpPossible;
if (isTopUpPossibleVal != null) {
size += CodedOutputStream.computeBoolSize(5,
isTopUpPossibleVal.booleanValue());
}
Boolean topUpDefaultStateVal = object.topUpDefaultState;
if (topUpDefaultStateVal != null) {
size += CodedOutputStream.computeBoolSize(6,
topUpDefaultStateVal.booleanValue());
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
size += CodedOutputStream.computeInt32Size(7,
providerIdVal.intValue());
}
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(8, descriptionVal);
}
String productImageUrlVal = object.productImageUrl;
if (productImageUrlVal != null) {
size += computeStringSize(9, productImageUrlVal);
}
ProductScreenMode screenModeVal = object.screenMode;
if (screenModeVal != null) {
return size + CodedOutputStream.computeInt32Size(10,
screenModeVal.getNumber());
}
return size;
}

private int computePaymentSettingsSize(PaymentSettings object) {


int size = ((0 + computeStringSize(1, object.creditBalance)) +
CodedOutputStream.computeBoolSize(2, object.autoTopup)) +
CodedOutputStream.computeBoolSize(3, object.hasStored);
String storedNameVal = object.storedName;
if (storedNameVal != null) {
size += computeStringSize(4, storedNameVal);
}
String storedDescriptionVal = object.storedDescription;
if (storedDescriptionVal != null) {
size += computeStringSize(5, storedDescriptionVal);
}
size += CodedOutputStream.computeBoolSize(6, object.hasSpp);
String settingsDescriptionVal = object.settingsDescription;
if (settingsDescriptionVal != null) {
size += computeStringSize(7, settingsDescriptionVal);
}
String storedIdVal = object.storedId;
if (storedIdVal != null) {
size += computeStringSize(8, storedIdVal);
}
String promoCreditsVal = object.promoCredits;
if (promoCreditsVal != null) {
size += computeStringSize(9, promoCreditsVal);
}
String promoHasAutoTopupVal = object.promoHasAutoTopup;
if (promoHasAutoTopupVal != null) {
size += computeStringSize(10, promoHasAutoTopupVal);
}
String promoNoStoredCardVal = object.promoNoStoredCard;
if (promoNoStoredCardVal != null) {
size += computeStringSize(11, promoNoStoredCardVal);
}
String creditsTermsVal = object.creditsTerms;
if (creditsTermsVal != null) {
size += computeStringSize(12, creditsTermsVal);
}
String promoHasNoAutoTopupVal = object.promoHasNoAutoTopup;
if (promoHasNoAutoTopupVal != null) {
size += computeStringSize(13, promoHasNoAutoTopupVal);
}
String subscriptionInfoVal = object.subscriptionInfo;
if (subscriptionInfoVal != null) {
size += computeStringSize(14, subscriptionInfoVal);
}
String promoSwitchHasAutoTopupVal = object.promoSwitchHasAutoTopup;
if (promoSwitchHasAutoTopupVal != null) {
size += computeStringSize(15, promoSwitchHasAutoTopupVal);
}
String promoSwitchHasNoAutoTopupVal = object.promoSwitchHasNoAutoTopup;
if (promoSwitchHasNoAutoTopupVal != null) {
size += computeStringSize(16, promoSwitchHasNoAutoTopupVal);
}
Boolean isSppCancelableVal = object.isSppCancelable;
if (isSppCancelableVal != null) {
size += CodedOutputStream.computeBoolSize(17,
isSppCancelableVal.booleanValue());
}
UnsubscribeInfo sppUnsubscribeVal = object.sppUnsubscribe;
if (sppUnsubscribeVal != null) {
return size + CodedOutputStream.computeBytesSize(18,
computeUnsubscribeInfoSize(sppUnsubscribeVal));
}
return size;
}

private int computePersonSize(Person object) {


int size = 0 + computeStringSize(1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
dateModifiedVal.longValue());
}
size = (((((((((((((((size + computeStringSize(3, object.name)) +
CodedOutputStream.computeInt32Size(4, object.gender.getNumber())) +
CodedOutputStream.computeInt32Size(5, object.age)) + computeStringSize(6,
object.dob)) + computeStringSize(7, object.wish)) +
CodedOutputStream.computeInt32Size(8, object.location)) + computeStringSize(9,
object.previewImageId)) + CodedOutputStream.computeInt32Size(10,
object.numberOfPhotos)) + computeStringSize(11, object.personalAlbumId)) +
CodedOutputStream.computeBoolSize(12, object.deleted)) +
CodedOutputStream.computeBoolSize(13, object.pending)) +
CodedOutputStream.computeBoolSize(14, object.visible)) +
CodedOutputStream.computeBoolSize(15, object.friend)) +
CodedOutputStream.computeBoolSize(16, object.favourite)) +
CodedOutputStream.computeBoolSize(17, object.blocked)) +
CodedOutputStream.computeBoolSize(18, object.profileVisited);
Boolean verifiedUserVal = object.verifiedUser;
if (verifiedUserVal != null) {
size += CodedOutputStream.computeBoolSize(19,
verifiedUserVal.booleanValue());
}
Boolean celebrityVal = object.celebrity;
if (celebrityVal != null) {
size += CodedOutputStream.computeBoolSize(20,
celebrityVal.booleanValue());
}
Boolean matchVal = object.match;
if (matchVal != null) {
return size + CodedOutputStream.computeBoolSize(21,
matchVal.booleanValue());
}
return size;
}

private int computePersonNoticeSize(PersonNotice object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.type.getNumber());
FolderTypes folderVal = object.folder;
if (folderVal != null) {
size += CodedOutputStream.computeInt32Size(2, folderVal.getNumber());
}
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
return size + computeStringSize(3, displayValueVal);
}
return size;
}

private int computePersonProfileSize(PersonProfile object) {


int c;
int size = 0 + computeStringSize(1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
dateModifiedVal.longValue());
}
String profileImageIdVal = object.profileImageId;
if (profileImageIdVal != null) {
size += computeStringSize(3, profileImageIdVal);
}
Vector albumIdsList = object.albumIds;
if (albumIdsList != null) {
for (c = 0; c < albumIdsList.size(); c++) {
size += computeStringSize(4, (String) albumIdsList.elementAt(c));
}
}
size = ((((size + CodedOutputStream.computeInt32Size(5,
object.percentageComplete)) + CodedOutputStream.computeBytesSize(6,
computeHashtableSize(object.personalInfo))) + CodedOutputStream.computeBytesSize(7,
computeHashtableSize(object.languages))) + CodedOutputStream.computeInt32Size(8,
object.theirVoteOnYou.getNumber())) + CodedOutputStream.computeInt32Size(9,
object.voteResult.getNumber());
Boolean allowEditGenderVal = object.allowEditGender;
if (allowEditGenderVal != null) {
size += CodedOutputStream.computeBoolSize(10,
allowEditGenderVal.booleanValue());
}
String largeImageIdVal = object.largeImageId;
if (largeImageIdVal != null) {
size += computeStringSize(11, largeImageIdVal);
}
Boolean votingEnabledVal = object.votingEnabled;
if (votingEnabledVal != null) {
size += CodedOutputStream.computeBoolSize(12,
votingEnabledVal.booleanValue());
}
Vector profileOptionsList = object.profileOptions;
if (profileOptionsList != null) {
for (c = 0; c < profileOptionsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(13,
computeClientProfileOptionSize((ClientProfileOption)
profileOptionsList.elementAt(c)));
}
}
String emailVal = object.email;
if (emailVal != null) {
size += computeStringSize(14, emailVal);
}
Boolean accountConfirmedVal = object.accountConfirmed;
if (accountConfirmedVal != null) {
size += CodedOutputStream.computeBoolSize(15,
accountConfirmedVal.booleanValue());
}
String phoneVal = object.phone;
if (phoneVal != null) {
size += computeStringSize(16, phoneVal);
}
Boolean showCommonInterestsVal = object.showCommonInterests;
if (showCommonInterestsVal != null) {
size += CodedOutputStream.computeBoolSize(17,
showCommonInterestsVal.booleanValue());
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (c = 0; c < interestsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(18,
computeInterestSize((Interest) interestsList.elementAt(c)));
}
}
String interestsMessageVal = object.interestsMessage;
if (interestsMessageVal != null) {
size += computeStringSize(19, interestsMessageVal);
}
Boolean addToFavouritesAllowedVal = object.addToFavouritesAllowed;
if (addToFavouritesAllowedVal != null) {
size += CodedOutputStream.computeBoolSize(20,
addToFavouritesAllowedVal.booleanValue());
}
Boolean chatAllowedVal = object.chatAllowed;
if (chatAllowedVal != null) {
size += CodedOutputStream.computeBoolSize(21,
chatAllowedVal.booleanValue());
}
String commonInterestMessageVal = object.commonInterestMessage;
if (commonInterestMessageVal != null) {
size += computeStringSize(22, commonInterestMessageVal);
}
String creditsVal = object.credits;
if (creditsVal != null) {
size += computeStringSize(23, creditsVal);
}
ClientUserVerifiedGet verifiedInformationVal = object.verifiedInformation;
if (verifiedInformationVal != null) {
size += CodedOutputStream.computeBytesSize(24,
computeClientUserVerifiedGetSize(verifiedInformationVal));
}
Boolean allowEditDobVal = object.allowEditDob;
if (allowEditDobVal != null) {
size += CodedOutputStream.computeBoolSize(25,
allowEditDobVal.booleanValue());
}
SocialFriendsConnectionsBlock friendsConnectionsVal =
object.friendsConnections;
if (friendsConnectionsVal != null) {
size += CodedOutputStream.computeBytesSize(26,
computeSocialFriendsConnectionsBlockSize(friendsConnectionsVal));
}
String thingsInCommonTitleVal = object.thingsInCommonTitle;
if (thingsInCommonTitleVal != null) {
size += computeStringSize(27, thingsInCommonTitleVal);
}
Integer thingsInCommonVal = object.thingsInCommon;
if (thingsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(28,
thingsInCommonVal.intValue());
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(29,
interestsInCommonVal.intValue());
}
Integer friendsInCommonVal = object.friendsInCommon;
if (friendsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(30,
friendsInCommonVal.intValue());
}
Integer isMatchVal = object.isMatch;
if (isMatchVal != null) {
size += CodedOutputStream.computeInt32Size(31, isMatchVal.intValue());
}
String cityVal = object.city;
if (cityVal != null) {
size += computeStringSize(32, cityVal);
}
String countryVal = object.country;
if (countryVal != null) {
size += computeStringSize(33, countryVal);
}
Vector facebookFriendsList = object.facebookFriends;
if (facebookFriendsList != null) {
for (c = 0; c < facebookFriendsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(34,
computeClientFacebookFriendSize((ClientFacebookFriend)
facebookFriendsList.elementAt(c)));
}
}
CreditsRewards creditsRewardsVal = object.creditsRewards;
if (creditsRewardsVal != null) {
size += CodedOutputStream.computeBytesSize(35,
computeCreditsRewardsSize(creditsRewardsVal));
}
Vector awardsList = object.awards;
if (awardsList != null) {
for (c = 0; c < awardsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(36,
computeAwardSize((Award) awardsList.elementAt(c)));
}
}
String matchMessageVal = object.matchMessage;
if (matchMessageVal != null) {
size += computeStringSize(38, matchMessageVal);
}
String ageMessageVal = object.ageMessage;
if (ageMessageVal != null) {
size += computeStringSize(39, ageMessageVal);
}
Vector fansList = object.fans;
if (fansList != null) {
for (c = 0; c < fansList.size(); c++) {
size += CodedOutputStream.computeBytesSize(40,
computePersonSize((Person) fansList.elementAt(c)));
}
}
Vector socialNetworksList = object.socialNetworks;
if (socialNetworksList != null) {
for (c = 0; c < socialNetworksList.size(); c++) {
size += CodedOutputStream.computeBytesSize(41,
computeSocialNetworkInfoSize((SocialNetworkInfo) socialNetworksList.elementAt(c)));
}
}
ProfileScore profileScoreVal = object.profileScore;
if (profileScoreVal != null) {
size += CodedOutputStream.computeBytesSize(43,
computeProfileScoreSize(profileScoreVal));
}
Popularity popularityVal = object.popularity;
if (popularityVal != null) {
size += CodedOutputStream.computeBytesSize(44,
computePopularitySize(popularityVal));
}
Boolean allowEditNameVal = object.allowEditName;
if (allowEditNameVal != null) {
size += CodedOutputStream.computeBoolSize(45,
allowEditNameVal.booleanValue());
}
ExternalProvider personalInformationSourceVal =
object.personalInformationSource;
if (personalInformationSourceVal != null) {
size += CodedOutputStream.computeBytesSize(46,
computeExternalProviderSize(personalInformationSourceVal));
}
Vector spokenLanguageList = object.spokenLanguage;
if (spokenLanguageList != null) {
for (c = 0; c < spokenLanguageList.size(); c++) {
size += CodedOutputStream.computeBytesSize(47,
computeLanguageSize((Language) spokenLanguageList.elementAt(c)));
}
}
Vector profileFieldList = object.profileField;
if (profileFieldList != null) {
for (c = 0; c < profileFieldList.size(); c++) {
size += CodedOutputStream.computeBytesSize(48,
computeProfileFieldSize((ProfileField) profileFieldList.elementAt(c)));
}
}
return size;
}

private int computePersonStatusSize(PersonStatus object) {


int size = 0 + computeStringSize(1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
dateModifiedVal.longValue());
}
size = (size + CodedOutputStream.computeInt32Size(3,
object.online.getNumber())) + CodedOutputStream.computeInt32Size(4,
object.lastActive);
Integer distanceVal = object.distance;
if (distanceVal != null) {
size += CodedOutputStream.computeInt32Size(5, distanceVal.intValue());
}
Boolean onSiteVal = object.onSite;
if (onSiteVal != null) {
size += CodedOutputStream.computeBoolSize(6, onSiteVal.booleanValue());
}
String distanceLongVal = object.distanceLong;
if (distanceLongVal != null) {
size += computeStringSize(7, distanceLongVal);
}
String distanceShortVal = object.distanceShort;
if (distanceShortVal != null) {
size += computeStringSize(8, distanceShortVal);
}
String activeLongVal = object.activeLong;
if (activeLongVal != null) {
size += computeStringSize(9, activeLongVal);
}
Boolean riseupVal = object.riseup;
if (riseupVal != null) {
size += CodedOutputStream.computeBoolSize(10,
riseupVal.booleanValue());
}
Boolean isHotVal = object.isHot;
if (isHotVal != null) {
size += CodedOutputStream.computeBoolSize(11, isHotVal.booleanValue());
}
Boolean isNewbieVal = object.isNewbie;
if (isNewbieVal != null) {
size += CodedOutputStream.computeBoolSize(12,
isNewbieVal.booleanValue());
}
Double longitudeVal = object.longitude;
if (longitudeVal != null) {
size += CodedOutputStream.computeDoubleSize(13,
longitudeVal.doubleValue());
}
Double latitudeVal = object.latitude;
if (latitudeVal != null) {
size += CodedOutputStream.computeDoubleSize(14,
latitudeVal.doubleValue());
}
Boolean locationKnownVal = object.locationKnown;
if (locationKnownVal != null) {
return size + CodedOutputStream.computeBoolSize(15,
locationKnownVal.booleanValue());
}
return size;
}

private int computePhonebookContactSize(PhonebookContact object) {


int size = 0 + computeStringSize(1, object.name);
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computePhonebookContactDetailSize((PhonebookContactDetail)
contactsList.elementAt(c)));
}
}
String phonebookIdVal = object.phonebookId;
if (phonebookIdVal != null) {
size += computeStringSize(3, phonebookIdVal);
}
String photoUrlVal = object.photoUrl;
if (photoUrlVal != null) {
size += computeStringSize(4, photoUrlVal);
}
Boolean checkedVal = object.checked;
if (checkedVal != null) {
size += CodedOutputStream.computeBoolSize(5,
checkedVal.booleanValue());
}
Boolean disabledVal = object.disabled;
if (disabledVal != null) {
size += CodedOutputStream.computeBoolSize(6,
disabledVal.booleanValue());
}
String userIdVal = object.userId;
if (userIdVal != null) {
size += computeStringSize(7, userIdVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
return size + computeStringSize(8, descriptionVal);
}
return size;
}

private int computePhonebookContactDetailSize(PhonebookContactDetail object) {


int size = (0 + computeStringSize(1, object.contact)) +
CodedOutputStream.computeInt32Size(2, object.type.getNumber());
Boolean canReceiveSmsVal = object.canReceiveSms;
if (canReceiveSmsVal != null) {
return size + CodedOutputStream.computeBoolSize(3,
canReceiveSmsVal.booleanValue());
}
return size;
}

private int computePhonebookContactlistSize(PhonebookContactlist object) {


int size = 0;
Vector contactList = object.contact;
if (contactList != null) {
for (int c = 0; c < contactList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhonebookContactSize((PhonebookContact) contactList.elementAt(c)));
}
}
String ownPhoneNumberVal = object.ownPhoneNumber;
if (ownPhoneNumberVal != null) {
size += computeStringSize(2, ownPhoneNumberVal);
}
Boolean numberCheckRequiredVal = object.numberCheckRequired;
if (numberCheckRequiredVal != null) {
size += CodedOutputStream.computeBoolSize(3,
numberCheckRequiredVal.booleanValue());
}
Boolean ownNumberNeededVal = object.ownNumberNeeded;
if (ownNumberNeededVal != null) {
size += CodedOutputStream.computeBoolSize(4,
ownNumberNeededVal.booleanValue());
}
String headerTextVal = object.headerText;
if (headerTextVal != null) {
size += computeStringSize(5, headerTextVal);
}
Integer requiredContactCountVal = object.requiredContactCount;
if (requiredContactCountVal != null) {
size += CodedOutputStream.computeInt32Size(6,
requiredContactCountVal.intValue());
}
String legalInfoVal = object.legalInfo;
if (legalInfoVal != null) {
size += computeStringSize(7, legalInfoVal);
}
Boolean clientShouldSendSmsVal = object.clientShouldSendSms;
if (clientShouldSendSmsVal != null) {
size += CodedOutputStream.computeBoolSize(8,
clientShouldSendSmsVal.booleanValue());
}
Boolean smsAlreadySentVal = object.smsAlreadySent;
if (smsAlreadySentVal != null) {
size += CodedOutputStream.computeBoolSize(9,
smsAlreadySentVal.booleanValue());
}
String smsContentTextVal = object.smsContentText;
if (smsContentTextVal != null) {
size += computeStringSize(10, smsContentTextVal);
}
ContactListView viewVal = object.view;
if (viewVal != null) {
size += CodedOutputStream.computeInt32Size(11, viewVal.getNumber());
}
FriendsImportFlow flowVal = object.flow;
if (flowVal != null) {
return size + CodedOutputStream.computeInt32Size(12,
flowVal.getNumber());
}
return size;
}

private int computePhotoSize(Photo object) {


int size = 0;
String idVal = object.id;
if (idVal != null) {
size = 0 + computeStringSize(1, idVal);
}
String previewUrlVal = object.previewUrl;
if (previewUrlVal != null) {
size += computeStringSize(2, previewUrlVal);
}
String largeUrlVal = object.largeUrl;
if (largeUrlVal != null) {
size += computeStringSize(3, largeUrlVal);
}
PhotoSize largePhotoSizeVal = object.largePhotoSize;
if (largePhotoSizeVal != null) {
size += CodedOutputStream.computeBytesSize(4,
computePhotoSizeSize(largePhotoSizeVal));
}
Point faceTopLeftVal = object.faceTopLeft;
if (faceTopLeftVal != null) {
size += CodedOutputStream.computeBytesSize(5,
computePointSize(faceTopLeftVal));
}
Point faceBottomRightVal = object.faceBottomRight;
if (faceBottomRightVal != null) {
size += CodedOutputStream.computeBytesSize(6,
computePointSize(faceBottomRightVal));
}
PhotoRating ratingVal = object.rating;
if (ratingVal != null) {
size += CodedOutputStream.computeBytesSize(7,
computePhotoRatingSize(ratingVal));
}
Boolean canSetAsProfilePhotoVal = object.canSetAsProfilePhoto;
if (canSetAsProfilePhotoVal != null) {
size += CodedOutputStream.computeBoolSize(8,
canSetAsProfilePhotoVal.booleanValue());
}
Boolean isPhotoOfMeVal = object.isPhotoOfMe;
if (isPhotoOfMeVal != null) {
size += CodedOutputStream.computeBoolSize(9,
isPhotoOfMeVal.booleanValue());
}
Boolean isProfilePhotoVal = object.isProfilePhoto;
if (isProfilePhotoVal != null) {
return size + CodedOutputStream.computeBoolSize(10,
isProfilePhotoVal.booleanValue());
}
return size;
}

private int computePhotoImportProgressSize(PhotoImportProgress object) {


int size = 0;
Vector albumsList = object.albums;
if (albumsList != null) {
for (int c = 0; c < albumsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeAlbumSize((Album) albumsList.elementAt(c)));
}
}
return size;
}

private int computePhotoImportResultSize(PhotoImportResult object) {


Album albumVal = object.album;
if (albumVal != null) {
return 0 + CodedOutputStream.computeBytesSize(1,
computeAlbumSize(albumVal));
}
return 0;
}

private int computePhotoRateRangeSize(PhotoRateRange object) {


int size = 0;
Integer topVal = object.top;
if (topVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, topVal.intValue());
}
PhotoRateType rateTypeVal = object.rateType;
if (rateTypeVal != null) {
size += CodedOutputStream.computeInt32Size(2, rateTypeVal.getNumber());
}
String rateActionMessageVal = object.rateActionMessage;
if (rateActionMessageVal != null) {
return size + computeStringSize(3, rateActionMessageVal);
}
return size;
}

private int computePhotoRatingSize(PhotoRating object) {


int size = 0;
Integer ratingVal = object.rating;
if (ratingVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, ratingVal.intValue());
}
String displayRatingVal = object.displayRating;
if (displayRatingVal != null) {
size += computeStringSize(2, displayRatingVal);
}
String rateActionMessageVal = object.rateActionMessage;
if (rateActionMessageVal != null) {
size += computeStringSize(3, rateActionMessageVal);
}
PhotoRateType rateTypeVal = object.rateType;
if (rateTypeVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
rateTypeVal.getNumber());
}
return size;
}

private int computePhotoSizeSize(PhotoSize object) {


int size = 0;
Integer widthVal = object.width;
if (widthVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, widthVal.intValue());
}
Integer heightVal = object.height;
if (heightVal != null) {
return size + CodedOutputStream.computeInt32Size(2,
heightVal.intValue());
}
return size;
}

private int computePhotoToRateSize(PhotoToRate object) {


int size = 0;
String photoIdVal = object.photoId;
if (photoIdVal != null) {
size = 0 + computeStringSize(1, photoIdVal);
}
PhotoRating averageVal = object.average;
if (averageVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computePhotoRatingSize(averageVal));
}
String userIdVal = object.userId;
if (userIdVal != null) {
size += computeStringSize(3, userIdVal);
}
String photoUrlVal = object.photoUrl;
if (photoUrlVal != null) {
return size + computeStringSize(4, photoUrlVal);
}
return size;
}

private int computePointSize(Point object) {


int size = 0;
Integer xVal = object.f3x;
if (xVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, xVal.intValue());
}
Integer yVal = object.f4y;
if (yVal != null) {
return size + CodedOutputStream.computeInt32Size(2, yVal.intValue());
}
return size;
}

private int computePopularitySize(Popularity object) {


int c;
int size = 0;
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
size = 0 + computeStringSize(1, displayValueVal);
}
Vector sharingImagesList = object.sharingImages;
if (sharingImagesList != null) {
for (c = 0; c < sharingImagesList.size(); c++) {
size += computeStringSize(2, (String)
sharingImagesList.elementAt(c));
}
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(3,
computeSocialSharingProviderSize((SocialSharingProvider)
sharingProvidersList.elementAt(c)));
}
}
return size;
}

private int computeProductSize(Product object) {


int size = 0 + computeStringSize(1, object.uid);
String nameVal = object.name;
if (nameVal != null) {
size += computeStringSize(2, nameVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(3, descriptionVal);
}
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computePaymentProviderProductSize((PaymentProviderProduct)
providersList.elementAt(c)));
}
}
return size;
}

private int computeProductRequestSize(ProductRequest object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.feature.getNumber());
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
size += CodedOutputStream.computeInt32Size(2,
((PaymentProviderType) providersList.elementAt(c)).getNumber());
}
}
Integer addressBookCountVal = object.addressBookCount;
if (addressBookCountVal != null) {
size += CodedOutputStream.computeInt32Size(3,
addressBookCountVal.intValue());
}
String googleAdvertisingIdVal = object.googleAdvertisingId;
if (googleAdvertisingIdVal != null) {
size += computeStringSize(4, googleAdvertisingIdVal);
}
Boolean googleAdvertisingLimitedAdTrackingVal =
object.googleAdvertisingLimitedAdTracking;
if (googleAdvertisingLimitedAdTrackingVal != null) {
return size + CodedOutputStream.computeBoolSize(5,
googleAdvertisingLimitedAdTrackingVal.booleanValue());
}
return size;
}

private int computeProductTermsSize(ProductTerms object) {


return (0 + CodedOutputStream.computeBytesSize(1,
computeProviderProductIdSize(object.uid))) + computeStringSize(2, object.terms);
}

private int computeProfileFieldSize(ProfileField object) {


int size = 0;
String idVal = object.id;
if (idVal != null) {
size = 0 + computeStringSize(1, idVal);
}
ProfileOptionType typeVal = object.type;
if (typeVal != null) {
size += CodedOutputStream.computeInt32Size(2, typeVal.getNumber());
}
String nameVal = object.name;
if (nameVal != null) {
size += computeStringSize(3, nameVal);
}
return size + computeStringSize(4, object.displayValue);
}

private int computeProfileScoreSize(ProfileScore object) {


int c;
int size = 0;
String uidVal = object.uid;
if (uidVal != null) {
size = 0 + computeStringSize(1, uidVal);
}
PromoBlock promoBlockVal = object.promoBlock;
if (promoBlockVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computePromoBlockSize(promoBlockVal));
}
Vector awardImagesList = object.awardImages;
if (awardImagesList != null) {
for (c = 0; c < awardImagesList.size(); c++) {
size += computeStringSize(3, (String)
awardImagesList.elementAt(c));
}
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeSocialSharingProviderSize((SocialSharingProvider)
sharingProvidersList.elementAt(c)));
}
}
String titleVal = object.title;
if (titleVal != null) {
size += computeStringSize(5, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(6, descriptionVal);
}
Integer scoreVal = object.score;
if (scoreVal != null) {
size += CodedOutputStream.computeInt32Size(7, scoreVal.intValue());
}
SocialFriendsConnectionsBlock socialFriendsConnectionBlockVal =
object.socialFriendsConnectionBlock;
if (socialFriendsConnectionBlockVal != null) {
return size + CodedOutputStream.computeBytesSize(8,
computeSocialFriendsConnectionsBlockSize(socialFriendsConnectionBlockVal));
}
return size;
}

private int computeProfileVisitingSourceSize(ProfileVisitingSource object) {


int size = 0 + computeStringSize(1, object.personId);
FolderTypes sourceFolderVal = object.sourceFolder;
if (sourceFolderVal != null) {
size += CodedOutputStream.computeInt32Size(3,
sourceFolderVal.getNumber());
}
String sectionIdVal = object.sectionId;
if (sectionIdVal != null) {
size += computeStringSize(4, sectionIdVal);
}
ClientSource visitingSourceVal = object.visitingSource;
if (visitingSourceVal != null) {
return size + CodedOutputStream.computeInt32Size(5,
visitingSourceVal.getNumber());
}
return size;
}

private int computePromoActionsBlockSize(PromoActionsBlock object) {


int size = 0;
String promoTextVal = object.promoText;
if (promoTextVal != null) {
size = 0 + computeStringSize(1, promoTextVal);
}
String promoExplainAnchorVal = object.promoExplainAnchor;
if (promoExplainAnchorVal != null) {
size += computeStringSize(2, promoExplainAnchorVal);
}
String promoExplainTextVal = object.promoExplainText;
if (promoExplainTextVal != null) {
size += computeStringSize(3, promoExplainTextVal);
}
Vector possibleActionsList = object.possibleActions;
if (possibleActionsList != null) {
for (int c = 0; c < possibleActionsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeButtonSize((Button) possibleActionsList.elementAt(c)));
}
}
return size;
}

private int computePromoBlockSize(PromoBlock object) {


int size = 0;
Vector imageIdList = object.imageId;
if (imageIdList != null) {
for (int c = 0; c < imageIdList.size(); c++) {
size += computeStringSize(1, (String) imageIdList.elementAt(c));
}
}
String mssgVal = object.mssg;
if (mssgVal != null) {
size += computeStringSize(2, mssgVal);
}
String actionVal = object.action;
if (actionVal != null) {
size += computeStringSize(3, actionVal);
}
String idVal = object.id;
if (idVal != null) {
size += computeStringSize(4, idVal);
}
String headerVal = object.header;
if (headerVal != null) {
size += computeStringSize(5, headerVal);
}
String cancelTextVal = object.cancelText;
if (cancelTextVal != null) {
size += computeStringSize(6, cancelTextVal);
}
ActionType okActionVal = object.okAction;
if (okActionVal != null) {
return size + CodedOutputStream.computeInt32Size(7,
okActionVal.getNumber());
}
return size;
}

private int computeProviderNameSize(ProviderName object) {


int size = (0 + CodedOutputStream.computeInt32Size(1,
object.provider.getNumber())) + computeStringSize(2, object.providerName);
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(3, descriptionVal);
}
String description2Val = object.description2;
if (description2Val != null) {
size += computeStringSize(4, description2Val);
}
String defaultProductUidVal = object.defaultProductUid;
if (defaultProductUidVal != null) {
size += computeStringSize(5, defaultProductUidVal);
}
String description3Val = object.description3;
if (description3Val != null) {
size += computeStringSize(6, description3Val);
}
Boolean showDisclaimerVal = object.showDisclaimer;
if (showDisclaimerVal != null) {
size += CodedOutputStream.computeBoolSize(7,
showDisclaimerVal.booleanValue());
}
Boolean showTopUpVal = object.showTopUp;
if (showTopUpVal != null) {
size += CodedOutputStream.computeBoolSize(8,
showTopUpVal.booleanValue());
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
size += CodedOutputStream.computeInt32Size(9,
providerIdVal.intValue());
}
String supportLinkVal = object.supportLink;
if (supportLinkVal != null) {
return size + computeStringSize(10, supportLinkVal);
}
return size;
}

private int computeProviderProductIdSize(ProviderProductId object) {


int size = (0 + computeStringSize(1, object.productUid)) +
CodedOutputStream.computeInt32Size(2, object.provider.getNumber());
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
providerIdVal.intValue());
}
return size;
}

private int computePurchaseReceiptSize(PurchaseReceipt object) {


int size = (0 + CodedOutputStream.computeBoolSize(1,
object.paymentSuccess)) + computeStringSize(2, object.transactionIdentifier);
byte[] receiptDataVal = object.receiptData;
if (receiptDataVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeByteArraySize(receiptDataVal));
}
Integer errorCodeVal = object.errorCode;
if (errorCodeVal != null) {
size += CodedOutputStream.computeInt32Size(4, errorCodeVal.intValue());
}
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
size += CodedOutputStream.computeInt32Size(5, providerVal.getNumber());
}
String productUidVal = object.productUid;
if (productUidVal != null) {
size += computeStringSize(6, productUidVal);
}
String photoIdVal = object.photoId;
if (photoIdVal != null) {
size += computeStringSize(7, photoIdVal);
}
byte[] receiptSignatureVal = object.receiptSignature;
if (receiptSignatureVal != null) {
size += CodedOutputStream.computeBytesSize(8,
computeByteArraySize(receiptSignatureVal));
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
return size + CodedOutputStream.computeInt32Size(9,
providerIdVal.intValue());
}
return size;
}

private int computePurchaseTransactionSize(PurchaseTransaction object) {


int size = ((((0 + computeStringSize(1, object.uid)) +
CodedOutputStream.computeInt32Size(2, object.provider.getNumber())) +
computeStringSize(3, object.transactionId)) + computeStringSize(4, object.price)) +
computeStringSize(5, object.currency);
String providerProductUidVal = object.providerProductUid;
if (providerProductUidVal != null) {
size += computeStringSize(6, providerProductUidVal);
}
String providerAccountVal = object.providerAccount;
if (providerAccountVal != null) {
size += computeStringSize(7, providerAccountVal);
}
String providerKeyVal = object.providerKey;
if (providerKeyVal != null) {
size += computeStringSize(8, providerKeyVal);
}
String processingMessageVal = object.processingMessage;
if (processingMessageVal != null) {
size += computeStringSize(9, processingMessageVal);
}
String redirectUrlVal = object.redirectUrl;
if (redirectUrlVal != null) {
size += computeStringSize(10, redirectUrlVal);
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
size += CodedOutputStream.computeInt32Size(11,
providerIdVal.intValue());
}
Vector quickDataEntryList = object.quickDataEntry;
if (quickDataEntryList != null) {
for (int c = 0; c < quickDataEntryList.size(); c++) {
size += CodedOutputStream.computeInt32Size(12,
((QuickPaymentDataEntryMethod) quickDataEntryList.elementAt(c)).getNumber());
}
}
Boolean isCarrierBillingVal = object.isCarrierBilling;
if (isCarrierBillingVal != null) {
size += CodedOutputStream.computeBoolSize(13,
isCarrierBillingVal.booleanValue());
}
String successUrlVal = object.successUrl;
if (successUrlVal != null) {
size += computeStringSize(14, successUrlVal);
}
String errorUrlVal = object.errorUrl;
if (errorUrlVal != null) {
size += computeStringSize(15, errorUrlVal);
}
String resultUrlVal = object.resultUrl;
if (resultUrlVal != null) {
size += computeStringSize(16, resultUrlVal);
}
Boolean isOneStepVal = object.isOneStep;
if (isOneStepVal != null) {
return size + CodedOutputStream.computeBoolSize(17,
isOneStepVal.booleanValue());
}
return size;
}

private int computePurchaseTransactionFailedSize(PurchaseTransactionFailed


object) {
int size = (0 + computeStringSize(1, object.uid)) +
CodedOutputStream.computeInt32Size(2, object.provider.getNumber());
ClientNotification notificationVal = object.notification;
if (notificationVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeClientNotificationSize(notificationVal));
}
FormFailure formErrorVal = object.formError;
if (formErrorVal != null) {
size += CodedOutputStream.computeBytesSize(4,
computeFormFailureSize(formErrorVal));
}
String transactionIdVal = object.transactionId;
if (transactionIdVal != null) {
size += computeStringSize(5, transactionIdVal);
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
return size + CodedOutputStream.computeInt32Size(6,
providerIdVal.intValue());
}
return size;
}

private int computePurchaseTransactionSetupSize(PurchaseTransactionSetup


object) {
int size = 0;
String uidVal = object.uid;
if (uidVal != null) {
size += computeStringSize(1, uidVal);
}
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
size += CodedOutputStream.computeInt32Size(2, providerVal.getNumber());
}
FeatureType featureVal = object.feature;
if (featureVal != null) {
size += CodedOutputStream.computeInt32Size(3, featureVal.getNumber());
}
String resultUrlVal = object.resultUrl;
if (resultUrlVal != null) {
size += computeStringSize(4, resultUrlVal);
}
String termsUrlVal = object.termsUrl;
if (termsUrlVal != null) {
size += computeStringSize(5, termsUrlVal);
}
String mimeTypeVal = object.mimeType;
if (mimeTypeVal != null) {
size += computeStringSize(6, mimeTypeVal);
}
String errorUrlVal = object.errorUrl;
if (errorUrlVal != null) {
size += computeStringSize(7, errorUrlVal);
}
String templateNameVal = object.templateName;
if (templateNameVal != null) {
size += computeStringSize(8, templateNameVal);
}
com.badoo.mobile.model.Hashtable paramsVal = object.params; // 9
if (paramsVal != null) {
throw new UnsupportedOperationException();
}
Boolean autoTopUpVal = object.autoTopUp;
if (autoTopUpVal != null) {
size += CodedOutputStream.computeBoolSize(10,
autoTopUpVal.booleanValue());
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
size += CodedOutputStream.computeInt32Size(11,
providerIdVal.intValue());
}
PurchaseTransactionSetupParams purchaseParamsVal = object.purchaseParams;
if (purchaseParamsVal != null) {
size += CodedOutputStream.computeBytesSize(12,
computePurchaseTransactionSetupParamsSize(purchaseParamsVal));
}
ExternalProviderType sharingProviderTypeVal =
object.sharingProviderType; // 13
if (sharingProviderTypeVal != null) {
size += CodedOutputStream.computeInt32Size(13,
sharingProviderTypeVal.getNumber());
}
ClientSource contextVal = object.context; // 14
if (contextVal != null) {
size += CodedOutputStream.computeInt32Size(14, contextVal.getNumber());
}
PromoBlockType promoBlockTypeVal = object.promoBlockType; // 15
if (promoBlockTypeVal != null) {
throw new UnsupportedOperationException();
}
ChatBlockId chatInitialScreenTypeVal = object.chatInitialScreenType; // 16
if (chatInitialScreenTypeVal != null) {
throw new UnsupportedOperationException();
}
PaymentProductType productTypeVal = object.productType; // 17
if (productTypeVal != null) {
size += CodedOutputStream.computeInt32Size(17,
productTypeVal.getNumber());
}
PaymentProductType creditsForProductVal = object.creditsForProduct; // 18
if (creditsForProductVal != null) {
size += CodedOutputStream.computeInt32Size(18,
creditsForProductVal.getNumber());
}
ConnectivityType connectivityTypeVal = object.connectivityType; // 19
if (connectivityTypeVal != null) {
size += CodedOutputStream.computeInt32Size(19,
connectivityTypeVal.getNumber());
}
Boolean isRenewVal = object.isRenew; // 20
if (isRenewVal != null) {
throw new UnsupportedOperationException();
}
String promoBlockVariantIdVal = object.promoBlockVariantId; // 21
if (promoBlockVariantIdVal != null) {
size += computeStringSize(21, promoBlockVariantIdVal);
}
PromoTerms shownTermsVal = object.shownTerms; // 22
if (shownTermsVal != null) {
throw new UnsupportedOperationException();
}

return size;
}

private int
computePurchaseTransactionSetupParamsSize(PurchaseTransactionSetupParams object) {
int size = 0;
String photoIdVal = object.photoId;
if (photoIdVal != null) {
size = 0 + computeStringSize(1, photoIdVal);
}
String msisdnVal = object.msisdn;
if (msisdnVal != null) {
size += computeStringSize(2, msisdnVal);
}
String mccVal = object.mcc;
if (mccVal != null) {
size += computeStringSize(3, mccVal);
}
String mncVal = object.mnc;
if (mncVal != null) {
size += computeStringSize(4, mncVal);
}
String uidVal = object.uid;
if (uidVal != null) {
return size + computeStringSize(5, uidVal);
}
return size;
}
private int computeRateFilterSize(RateFilter object) {
SexType genderVal = object.gender;
if (genderVal != null) {
return 0 + CodedOutputStream.computeInt32Size(1,
genderVal.getNumber());
}
return 0;
}

private int computeRatingViewBlockedInfoSize(RatingViewBlockedInfo object) {


int size = 0;
Integer votesNeededVal = object.votesNeeded;
if (votesNeededVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
votesNeededVal.intValue());
}
Integer votesDoneVal = object.votesDone;
if (votesDoneVal != null) {
size += CodedOutputStream.computeInt32Size(2, votesDoneVal.intValue());
}
String votesMessageVal = object.votesMessage;
if (votesMessageVal != null) {
size += computeStringSize(3, votesMessageVal);
}
String pictureUrlVal = object.pictureUrl;
if (pictureUrlVal != null) {
return size + computeStringSize(4, pictureUrlVal);
}
return size;
}

private int computeRedirectPageSize(RedirectPage object) {


int size = 0;
ClientSource redirectPageVal = object.redirectPage;
if (redirectPageVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
redirectPageVal.getNumber());
}
String userIdVal = object.userId;
if (userIdVal != null) {
size += computeStringSize(2, userIdVal);
}
String tokenVal = object.token;
if (tokenVal != null) {
return size + computeStringSize(3, tokenVal);
}
return size;
}

private int computeRegistrationStatsSize(RegistrationStats object) {


int size = 0;
RegistrationAction actionVal = object.action;
if (actionVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
actionVal.getNumber());
}
RegistrationMethod methodVal = object.method;
if (methodVal != null) {
return size + CodedOutputStream.computeInt32Size(2,
methodVal.getNumber());
}
return size;
}

private int computeSEOInfoSize(SEOInfo object) {


int size = 0;
String titleVal = object.title;
if (titleVal != null) {
size = 0 + computeStringSize(1, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
size += computeStringSize(2, descriptionVal);
}
String linkVal = object.link;
if (linkVal != null) {
size += computeStringSize(3, linkVal);
}
Vector tagsList = object.tags;
if (tagsList != null) {
for (int c = 0; c < tagsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeMetaTagSize((MetaTag) tagsList.elementAt(c)));
}
}
return size;
}

private int computeSaveProfileSize(SaveProfile object) {


int c;
int size = 0;
Hashtable languagesVal = object.languages;
if (languagesVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computeHashtableSize(languagesVal));
}
Hashtable profileInfoVal = object.profileInfo;
if (profileInfoVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeHashtableSize(profileInfoVal));
}
Vector spokenLanguageList = object.spokenLanguage;
if (spokenLanguageList != null) {
for (c = 0; c < spokenLanguageList.size(); c++) {
size += CodedOutputStream.computeBytesSize(3,
computeLanguageSize((Language) spokenLanguageList.elementAt(c)));
}
}
Vector updatedValuesList = object.updatedValues;
if (updatedValuesList != null) {
for (c = 0; c < updatedValuesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeUpdatedProfileValuesSize((UpdatedProfileValues)
updatedValuesList.elementAt(c)));
}
}
return size;
}
private int computeSearchResultSize(SearchResult object) {
int c;
int size = (0 + CodedOutputStream.computeBytesSize(1,
computePersonSize(object.person))) + CodedOutputStream.computeBytesSize(2,
computePersonStatusSize(object.personStatus));
Boolean hasUserVotedVal = object.hasUserVoted;
if (hasUserVotedVal != null) {
size += CodedOutputStream.computeBoolSize(3,
hasUserVotedVal.booleanValue());
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (c = 0; c < interestsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(6,
computeInterestSize((Interest) interestsList.elementAt(c)));
}
}
Integer friendsInCommonVal = object.friendsInCommon;
if (friendsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(8,
friendsInCommonVal.intValue());
}
Integer profileRatingVal = object.profileRating;
if (profileRatingVal != null) {
size += CodedOutputStream.computeInt32Size(9,
profileRatingVal.intValue());
}
Album albumVal = object.album;
if (albumVal != null) {
size += CodedOutputStream.computeBytesSize(10,
computeAlbumSize(albumVal));
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(11,
interestsInCommonVal.intValue());
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(12,
computeSocialSharingProviderSize((SocialSharingProvider)
sharingProvidersList.elementAt(c)));
}
}
Boolean lastFriendVal = object.lastFriend;
if (lastFriendVal != null) {
size += CodedOutputStream.computeBoolSize(13,
lastFriendVal.booleanValue());
}
PromoBlock sharingPromoVal = object.sharingPromo;
if (sharingPromoVal != null) {
size += CodedOutputStream.computeBytesSize(14,
computePromoBlockSize(sharingPromoVal));
}
VoteResultType myVoteVal = object.myVote;
if (myVoteVal != null) {
size += CodedOutputStream.computeInt32Size(15, myVoteVal.getNumber());
}
String matchMessageVal = object.matchMessage;
if (matchMessageVal != null) {
return size + computeStringSize(16, matchMessageVal);
}
return size;
}

private int computeSearchSettingsSize(SearchSettings object) {


int c;
int size = 0 + CodedOutputStream.computeInt32Size(1,
object.contextType.getNumber());
String wishVal = object.wish;
if (wishVal != null) {
size += computeStringSize(2, wishVal);
}
Vector genderList = object.gender;
if (genderList != null) {
for (c = 0; c < genderList.size(); c++) {
size += CodedOutputStream.computeInt32Size(3, ((SexType)
genderList.elementAt(c)).getNumber());
}
}
Integer fromAgeVal = object.fromAge;
if (fromAgeVal != null) {
size += CodedOutputStream.computeInt32Size(4, fromAgeVal.intValue());
}
Integer toAgeVal = object.toAge;
if (toAgeVal != null) {
size += CodedOutputStream.computeInt32Size(5, toAgeVal.intValue());
}
Integer numberVal = object.number;
if (numberVal != null) {
size += CodedOutputStream.computeInt32Size(6, numberVal.intValue());
}
Integer locationIdVal = object.locationId;
if (locationIdVal != null) {
size += CodedOutputStream.computeInt32Size(8,
locationIdVal.intValue());
}
Boolean previouslySavedVal = object.previouslySaved;
if (previouslySavedVal != null) {
size += CodedOutputStream.computeBoolSize(9,
previouslySavedVal.booleanValue());
}
String locationNameVal = object.locationName;
if (locationNameVal != null) {
size += computeStringSize(10, locationNameVal);
}
Boolean isCustomTiwAllowedVal = object.isCustomTiwAllowed;
if (isCustomTiwAllowedVal != null) {
size += CodedOutputStream.computeBoolSize(11,
isCustomTiwAllowedVal.booleanValue());
}
FolderTypes folderIdVal = object.folderId;
if (folderIdVal != null) {
size += CodedOutputStream.computeInt32Size(12,
folderIdVal.getNumber());
}
Vector tiwIdeasList = object.tiwIdeas;
if (tiwIdeasList != null) {
for (c = 0; c < tiwIdeasList.size(); c++) {
size += CodedOutputStream.computeBytesSize(14,
computeTiwIdeaSize((TiwIdea) tiwIdeasList.elementAt(c)));
}
}
Integer tiwPhraseIdVal = object.tiwPhraseId;
if (tiwPhraseIdVal != null) {
size += CodedOutputStream.computeInt32Size(15,
tiwPhraseIdVal.intValue());
}
Vector nearbyAgeRangeList = object.nearbyAgeRange;
if (nearbyAgeRangeList != null) {
for (c = 0; c < nearbyAgeRangeList.size(); c++) {
size += CodedOutputStream.computeBytesSize(16,
computeSearchSettingsAgeOptionSize((SearchSettingsAgeOption)
nearbyAgeRangeList.elementAt(c)));
}
}
Integer currentAgeOptionVal = object.currentAgeOption;
if (currentAgeOptionVal != null) {
size += CodedOutputStream.computeInt32Size(17,
currentAgeOptionVal.intValue());
}
Integer minAgeRangeVal = object.minAgeRange;
if (minAgeRangeVal != null) {
size += CodedOutputStream.computeInt32Size(18,
minAgeRangeVal.intValue());
}
Boolean voteOnCelebritiesVal = object.voteOnCelebrities;
if (voteOnCelebritiesVal != null) {
return size + CodedOutputStream.computeBoolSize(19,
voteOnCelebritiesVal.booleanValue());
}
return size;
}

private int computeSearchSettingsAgeOptionSize(SearchSettingsAgeOption object)


{
int size = 0;
Integer ageOptionIdVal = object.ageOptionId;
if (ageOptionIdVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
ageOptionIdVal.intValue());
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
return size + computeStringSize(2, displayTextVal);
}
return size;
}

private int computeSearchSettingsContextSize(SearchSettingsContext object) {


return 0 + CodedOutputStream.computeInt32Size(1,
object.searchResponseContext.getNumber());
}

private int computeSearchSettingsFailureSize(SearchSettingsFailure object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.contextType.getNumber());
Vector errorsList = object.errors;
if (errorsList != null) {
for (int c = 0; c < errorsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeFieldErrorSize((FieldError) errorsList.elementAt(c)));
}
}
return size;
}

private int computeSectionUserSize(SectionUser object) {


int size = 0 + computeStringSize(1, object.uid);
String nameVal = object.name;
if (nameVal != null) {
size += computeStringSize(2, nameVal);
}
Integer ageVal = object.age;
if (ageVal != null) {
size += CodedOutputStream.computeInt32Size(3, ageVal.intValue());
}
SexType genderVal = object.gender;
if (genderVal != null) {
size += CodedOutputStream.computeInt32Size(4, genderVal.getNumber());
}
String wishVal = object.wish;
if (wishVal != null) {
size += computeStringSize(5, wishVal);
}
String previewImageUrlVal = object.previewImageUrl;
if (previewImageUrlVal != null) {
size += computeStringSize(6, previewImageUrlVal);
}
Integer numberOfPhotosVal = object.numberOfPhotos;
if (numberOfPhotosVal != null) {
size += CodedOutputStream.computeInt32Size(7,
numberOfPhotosVal.intValue());
}
Boolean deletedVal = object.deleted;
if (deletedVal != null) {
size += CodedOutputStream.computeBoolSize(8,
deletedVal.booleanValue());
}
Boolean pendingVal = object.pending;
if (pendingVal != null) {
size += CodedOutputStream.computeBoolSize(9,
pendingVal.booleanValue());
}
Boolean invisibleVal = object.invisible;
if (invisibleVal != null) {
size += CodedOutputStream.computeBoolSize(10,
invisibleVal.booleanValue());
}
OnlineStatus onlineStatusVal = object.onlineStatus;
if (onlineStatusVal != null) {
size += CodedOutputStream.computeInt32Size(11,
onlineStatusVal.getNumber());
}
Boolean unreadVal = object.unread;
if (unreadVal != null) {
size += CodedOutputStream.computeBoolSize(12,
unreadVal.booleanValue());
}
Long spotlightIdVal = object.spotlightId;
if (spotlightIdVal != null) {
size += CodedOutputStream.computeInt64Size(13,
spotlightIdVal.longValue());
}
Boolean verifiedUserVal = object.verifiedUser;
if (verifiedUserVal != null) {
size += CodedOutputStream.computeBoolSize(14,
verifiedUserVal.booleanValue());
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
size += computeStringSize(15, displayMessageVal);
}
String distanceShortVal = object.distanceShort;
if (distanceShortVal != null) {
size += computeStringSize(16, distanceShortVal);
}
Integer unreadMessagesVal = object.unreadMessages;
if (unreadMessagesVal != null) {
size += CodedOutputStream.computeInt32Size(18,
unreadMessagesVal.intValue());
}
Integer thingsInCommonVal = object.thingsInCommon;
if (thingsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(19,
thingsInCommonVal.intValue());
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(20,
interestsInCommonVal.intValue());
}
Integer friendsInCommonVal = object.friendsInCommon;
if (friendsInCommonVal != null) {
size += CodedOutputStream.computeInt32Size(21,
friendsInCommonVal.intValue());
}
Boolean isMatchVal = object.isMatch;
if (isMatchVal != null) {
size += CodedOutputStream.computeBoolSize(22,
isMatchVal.booleanValue());
}
Boolean ownsSlotVal = object.ownsSlot;
if (ownsSlotVal != null) {
size += CodedOutputStream.computeBoolSize(23,
ownsSlotVal.booleanValue());
}
Boolean isCelebrityVal = object.isCelebrity;
if (isCelebrityVal != null) {
size += CodedOutputStream.computeBoolSize(24,
isCelebrityVal.booleanValue());
}
Vector ratedPhotosList = object.ratedPhotos;
if (ratedPhotosList != null) {
for (int c = 0; c < ratedPhotosList.size(); c++) {
size += CodedOutputStream.computeBytesSize(25,
computePhotoSize((Photo) ratedPhotosList.elementAt(c)));
}
}
VoteResultType myVoteVal = object.myVote;
if (myVoteVal != null) {
return size + CodedOutputStream.computeInt32Size(26,
myVoteVal.getNumber());
}
return size;
}

private int computeSectionUserActionListSize(SectionUserActionList object) {


int size = 0;
String sectionIdVal = object.sectionId;
if (sectionIdVal != null) {
size = 0 + computeStringSize(1, sectionIdVal);
}
Vector personIdList = object.personId;
if (personIdList != null) {
for (int c = 0; c < personIdList.size(); c++) {
size += computeStringSize(2, (String) personIdList.elementAt(c));
}
}
return size;
}

private int computeSelectFriendsSectionSize(SelectFriendsSection object) {


int size = 0;
String titleVal = object.title;
if (titleVal != null) {
size = 0 + computeStringSize(1, titleVal);
}
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computePhonebookContactSize((PhonebookContact) contactsList.elementAt(c)));
}
}
return size;
}

private int computeServerAnonymousChatSize(ServerAnonymousChat object) {


int size = 0;
Boolean expandedSearchVal = object.expandedSearch;
if (expandedSearchVal != null) {
size = 0 + CodedOutputStream.computeBoolSize(1,
expandedSearchVal.booleanValue());
}
Boolean forceNewChatVal = object.forceNewChat;
if (forceNewChatVal != null) {
size += CodedOutputStream.computeBoolSize(2,
forceNewChatVal.booleanValue());
}
Boolean onlyExistingVal = object.onlyExisting;
if (onlyExistingVal != null) {
return size + CodedOutputStream.computeBoolSize(3,
onlyExistingVal.booleanValue());
}
return size;
}

private int computeServerAnonymousChatRevealSize(ServerAnonymousChatReveal


object) {
String chatIdVal = object.chatId;
if (chatIdVal != null) {
return 0 + computeStringSize(1, chatIdVal);
}
return 0;
}

private int computeServerAppStartupSize(ServerAppStartup object) {


int c;
int size = (((((0 + computeStringSize(1, object.appVersion)) +
computeStringSize(2, object.appBuild)) + computeStringSize(3, object.userAgent)) +
CodedOutputStream.computeInt32Size(4, object.screenHeight)) +
CodedOutputStream.computeInt32Size(5, object.screenWidth)) +
CodedOutputStream.computeInt32Size(6, object.language);
String localeVal = object.locale;
if (localeVal != null) {
size += computeStringSize(7, localeVal);
}
Hashtable jadPropertiesVal = object.jadProperties;
if (jadPropertiesVal != null) {
size += CodedOutputStream.computeBytesSize(8,
computeHashtableSize(jadPropertiesVal));
}
size += computeStringSize(9, object.appName);
String countryCodeVal = object.countryCode;
if (countryCodeVal != null) {
size += computeStringSize(10, countryCodeVal);
}
String deviceIdVal = object.deviceId;
if (deviceIdVal != null) {
size += computeStringSize(11, deviceIdVal);
}
String sessionIdVal = object.sessionId;
if (sessionIdVal != null) {
size += computeStringSize(12, sessionIdVal);
}
Boolean backgroundSessionVal = object.backgroundSession;
if (backgroundSessionVal != null) {
size += CodedOutputStream.computeBoolSize(13,
backgroundSessionVal.booleanValue());
}
String appTypeVal = object.appType;
if (appTypeVal != null) {
size += computeStringSize(14, appTypeVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
size += computeStringSize(15, userIdVal);
}
String referrerVal = object.referrer;
if (referrerVal != null) {
size += computeStringSize(16, referrerVal);
}
Vector supportedPaymentProvidersList = object.supportedPaymentProviders;
if (supportedPaymentProvidersList != null) {
for (c = 0; c < supportedPaymentProvidersList.size(); c++) {
size += CodedOutputStream.computeInt32Size(17,
((PaymentProviderType) supportedPaymentProvidersList.elementAt(c)).getNumber());
}
}
String affiliateVal = object.affiliate;
if (affiliateVal != null) {
size += computeStringSize(19, affiliateVal);
}
String timezoneLocationVal = object.timezoneLocation;
if (timezoneLocationVal != null) {
size += computeStringSize(20, timezoneLocationVal);
}
Integer timezoneGmtOffsetVal = object.timezoneGmtOffset;
if (timezoneGmtOffsetVal != null) {
size += CodedOutputStream.computeInt32Size(21,
timezoneGmtOffsetVal.intValue());
}
String smsVerificationCodeVal = object.smsVerificationCode;
if (smsVerificationCodeVal != null) {
size += computeStringSize(22, smsVerificationCodeVal);
}
String invcredIdVal = object.invcredId;
if (invcredIdVal != null) {
size += computeStringSize(23, invcredIdVal);
}
String openUdidVal = object.openUdid;
if (openUdidVal != null) {
size += computeStringSize(24, openUdidVal);
}
String imsiVal = object.imsi;
if (imsiVal != null) {
size += computeStringSize(25, imsiVal);
}
Boolean deactivateOtherUserVal = object.deactivateOtherUser;
if (deactivateOtherUserVal != null) {
size += CodedOutputStream.computeBoolSize(26,
deactivateOtherUserVal.booleanValue());
}
Boolean canSendSmsVal = object.canSendSms;
if (canSendSmsVal != null) {
size += CodedOutputStream.computeBoolSize(27,
canSendSmsVal.booleanValue());
}
String oauthTrustedRedirectUrlVal = object.oauthTrustedRedirectUrl;
if (oauthTrustedRedirectUrlVal != null) {
size += computeStringSize(28, oauthTrustedRedirectUrlVal);
}
String honBadooContinueUrlVal = object.honBadooContinueUrl;
if (honBadooContinueUrlVal != null) {
size += computeStringSize(29, honBadooContinueUrlVal);
}
String vendorIdVal = object.vendorId;
if (vendorIdVal != null) {
size += computeStringSize(30, vendorIdVal);
}
String advertisingIdVal = object.advertisingId;
if (advertisingIdVal != null) {
size += computeStringSize(31, advertisingIdVal);
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
size += CodedOutputStream.computeBytesSize(32,
computeABTestingSettingsSize(aBTestingSettingsVal));
}
String accessTokenVal = object.accessToken;
if (accessTokenVal != null) {
size += computeStringSize(33, accessTokenVal);
}
RadioType radioTypeVal = object.radioType;
if (radioTypeVal != null) {
size += CodedOutputStream.computeInt32Size(34,
radioTypeVal.getNumber());
}
BuildConfiguration buildConfigurationVal = object.buildConfiguration;
if (buildConfigurationVal != null) {
size += CodedOutputStream.computeInt32Size(35,
buildConfigurationVal.getNumber());
}
String apsTokenVal = object.apsToken;
if (apsTokenVal != null) {
size += computeStringSize(36, apsTokenVal);
}
String deviceRegidVal = object.deviceRegid;
if (deviceRegidVal != null) {
size += computeStringSize(37, deviceRegidVal);
}
String msPushChannelUriVal = object.msPushChannelUri;
if (msPushChannelUriVal != null) {
size += computeStringSize(38, msPushChannelUriVal);
}
String androidIdVal = object.androidId;
if (androidIdVal != null) {
size += computeStringSize(39, androidIdVal);
}
String mccVal = object.mcc;
if (mccVal != null) {
size += computeStringSize(40, mccVal);
}
String mncVal = object.mnc;
if (mncVal != null) {
size += computeStringSize(41, mncVal);
}
String msisdnVal = object.msisdn;
if (msisdnVal != null) {
size += computeStringSize(42, msisdnVal);
}
Vector supportedMinorFeaturesList = object.supportedMinorFeatures;
if (supportedMinorFeaturesList != null) {
for (c = 0; c < supportedMinorFeaturesList.size(); c++) {
size += CodedOutputStream.computeInt32Size(43, ((MinorFeature)
supportedMinorFeaturesList.elementAt(c)).getNumber());
}
}
Vector supportedFeaturesList = object.supportedFeatures;
if (supportedFeaturesList != null) {
for (c = 0; c < supportedFeaturesList.size(); c++) {
size += CodedOutputStream.computeInt32Size(44, ((FeatureType)
supportedFeaturesList.elementAt(c)).getNumber());
}
}
Boolean embeddedMobileWebVal = object.embeddedMobileWeb;
if (embeddedMobileWebVal != null) {
size += CodedOutputStream.computeBoolSize(45,
embeddedMobileWebVal.booleanValue());
}
ServerAppStatsStartSource startSourceVal = object.startSource;
if (startSourceVal != null) {
size += CodedOutputStream.computeBytesSize(46,
computeServerAppStatsStartSourceSize(startSourceVal));
}

Vector devFeaturesList = object.devFeatures;


if (devFeaturesList != null) {
for (c = 0; c < devFeaturesList.size(); c++) {
size += CodedOutputStream.computeStringSize(47, (String)
devFeaturesList.elementAt(c));
}
}
String externalProviderRedirectUrlVal = object.externalProviderRedirectUrl;
if (externalProviderRedirectUrlVal != null) {
size += computeStringSize(48, externalProviderRedirectUrlVal);
}
Vector verificationProviderSupportList =
object.verificationProviderSupport;
if (verificationProviderSupportList != null) {
for (c = 0; c < verificationProviderSupportList.size(); c++) {
size += CodedOutputStream.computeInt32Size(50,
((ExternalProviderType) verificationProviderSupportList.elementAt(c)).getNumber());
}
}
Boolean supportClientMapsVal = object.supportClientMaps;
if (supportClientMapsVal != null) {
size += CodedOutputStream.computeBoolSize(52,
supportClientMapsVal.booleanValue());
}
UserFieldFilter userFieldFilterClientLoginSuccessVal =
object.userFieldFilterClientLoginSuccess;
if (userFieldFilterClientLoginSuccessVal != null) {
size += CodedOutputStream.computeBytesSize(55,
computeUserFieldFilterSize(userFieldFilterClientLoginSuccessVal));
}
UserFieldFilter userFieldFilterChatMessageFromVal =
object.userFieldFilterChatMessageFrom;
if (userFieldFilterChatMessageFromVal != null) {
size += CodedOutputStream.computeBytesSize(56,
computeUserFieldFilterSize(userFieldFilterChatMessageFromVal));
}
String hotpanelSessionIdVal = object.hotpanelSessionId;
if (hotpanelSessionIdVal != null) {
size += computeStringSize(57, hotpanelSessionIdVal);
}
Vector supportedNotificationsList = object.supportedNotifications;
if (supportedNotificationsList != null) {
for (c = 0; c < supportedNotificationsList.size(); c++) {
size += CodedOutputStream.computeInt32Size(58,
((ClientNotificationType) supportedNotificationsList.elementAt(c)).getNumber());
}
}
PlatformType platformTypeVal = object.appPlatformType;
if (platformTypeVal != null) {
size += CodedOutputStream.computeInt32Size(59,
platformTypeVal.getNumber());
}
AppProductType appProductTypeVal = object.appProductType;
if (appProductTypeVal != null) {
size += CodedOutputStream.computeInt32Size(60,
appProductTypeVal.getNumber());
}
String networkOperatorNameVal = object.networkOperatorName;
if (networkOperatorNameVal != null) {
size += computeStringSize(64, networkOperatorNameVal);
}
String lexemesVersionVal = object.lexemesVersion;
if (lexemesVersionVal != null) {
size += computeStringSize(67, lexemesVersionVal);
}
Boolean isFirstLaunchVal = object.isFirstLaunch;
if (isFirstLaunchVal != null) {
size += CodedOutputStream.computeBoolSize(70,
isFirstLaunchVal.booleanValue());
}
Boolean googleAdvertisingLimitedAdTrackingVal =
object.googleAdvertisingLimitedAdTracking;
if (googleAdvertisingLimitedAdTrackingVal != null) {
size += CodedOutputStream.computeBoolSize(73,
googleAdvertisingLimitedAdTrackingVal.booleanValue());
}
Vector supportedOnboardingTypesList = object.supportedOnboardingTypes;
if (supportedOnboardingTypesList != null) {
for (c = 0; c < supportedOnboardingTypesList.size(); c++) {
size += CodedOutputStream.computeInt32Size(77,
((OnboardingPageType) supportedOnboardingTypesList.elementAt(c)).getNumber());
}
}
String appsflyerDeviceIdVal = object.appsflyerDeviceId;
if (appsflyerDeviceIdVal != null) {
size += computeStringSize(91, appsflyerDeviceIdVal);
}

return size;
}

private int computeServerAppStatsSize(ServerAppStats object) {


int size = 0;
ServerAppStatsStartSource startSourceVal = object.startSource;
if (startSourceVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computeServerAppStatsStartSourceSize(startSourceVal));
}
TrustedNetworkStats tnSourceVal = object.tnSource;
if (tnSourceVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeTrustedNetworkStatsSize(tnSourceVal));
}
OfferwallStats offerwallSourceVal = object.offerwallSource;
if (offerwallSourceVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeOfferwallStatsSize(offerwallSourceVal));
}
SharingStats sharingStatsVal = object.sharingStats;
if (sharingStatsVal != null) {
size += CodedOutputStream.computeBytesSize(4,
computeSharingStatsSize(sharingStatsVal));
}
RegistrationStats registrationStatsVal = object.registrationStats;
if (registrationStatsVal != null) {
size += CodedOutputStream.computeBytesSize(5,
computeRegistrationStatsSize(registrationStatsVal));
}
FriendOrCelebritySharingStats friendOrCelebritySharingVal =
object.friendOrCelebritySharing;
if (friendOrCelebritySharingVal != null) {
size += CodedOutputStream.computeBytesSize(6,
computeFriendOrCelebritySharingStatsSize(friendOrCelebritySharingVal));
}
StarRatingStats starRatingStatsVal = object.starRatingStats;
if (starRatingStatsVal != null) {
return size + CodedOutputStream.computeBytesSize(7,
computeStarRatingStatsSize(starRatingStatsVal));
}
return size;
}

private int computeServerAppStatsStartSourceSize(ServerAppStatsStartSource


object) {
int size = 0;
ServerAppStatsStartSourceType typeVal = object.type;
if (typeVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, typeVal.getNumber());
}
String sourceIdVal = object.sourceId;
if (sourceIdVal != null) {
size += computeStringSize(3, sourceIdVal);
}
ClientSource startScreenVal = object.startScreen;
if (startScreenVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
startScreenVal.getNumber());
}
return size;
}

private int computeServerCaptchaAttemptSize(ServerCaptchaAttempt object) {


return ((0 + computeStringSize(1, object.uid)) + computeStringSize(2,
object.imageId)) + computeStringSize(3, object.answer);
}

private int computeServerChangePasswordSize(ServerChangePassword object) {


int size = 0;
String currentPasswordVal = object.currentPassword;
if (currentPasswordVal != null) {
size = 0 + computeStringSize(1, currentPasswordVal);
}
String updatedPasswordVal = object.updatedPassword;
if (updatedPasswordVal != null) {
size += computeStringSize(2, updatedPasswordVal);
}
String changePasswordTokenVal = object.changePasswordToken;
if (changePasswordTokenVal != null) {
return size + computeStringSize(3, changePasswordTokenVal);
}
return size;
}

private int
computeServerCheckExternalProviderImportProgressSize(ServerCheckExternalProviderImp
ortProgress object) {
String importIdVal = object.importId;
if (importIdVal != null) {
return 0 + computeStringSize(1, importIdVal);
}
return 0;
}

private int computeServerCheckFriendsImportSize(ServerCheckFriendsImport


object) {
String importIdVal = object.importId;
if (importIdVal != null) {
return 0 + computeStringSize(1, importIdVal);
}
return 0;
}

private int computeServerConnectAllContactsSize(ServerConnectAllContacts


object) {
int size = 0;
String uidVal = object.uid;
if (uidVal != null) {
size = 0 + computeStringSize(1, uidVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
contextVal.getNumber());
}
return size;
}

private int computeServerDeleteAccountSize(ServerDeleteAccount object) {


int size = 0;
String reasonCodeVal = object.reasonCode;
if (reasonCodeVal != null) {
size = 0 + computeStringSize(1, reasonCodeVal);
}
String textVal = object.text;
if (textVal != null) {
return size + computeStringSize(2, textVal);
}
return size;
}

private int computeServerEncountersVoteSize(ServerEncountersVote object) {


int size = (0 + computeStringSize(1, object.personId)) +
CodedOutputStream.computeInt32Size(2, object.vote.getNumber());
String photoIdVal = object.photoId;
if (photoIdVal != null) {
size += computeStringSize(3, photoIdVal);
}
ClientSource voteSourceVal = object.voteSource;
if (voteSourceVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
voteSourceVal.getNumber());
}
return size;
}

private int computeServerErrorMessageSize(ServerErrorMessage object) {


int size = (0 + computeStringSize(1, object.errorCode)) +
computeStringSize(2, object.errorMessage);
ApplicationFeature featureVal = object.feature;
if (featureVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeApplicationFeatureSize(featureVal));
}
String errorIdVal = object.errorId;
if (errorIdVal != null) {
size += computeStringSize(4, errorIdVal);
}
String errorTitleVal = object.errorTitle;
if (errorTitleVal != null) {
size += computeStringSize(5, errorTitleVal);
}
Long errorEtaVal = object.errorEta;
if (errorEtaVal != null) {
size += CodedOutputStream.computeInt64Size(6, errorEtaVal.longValue());
}
ServerErrorType typeVal = object.type;
if (typeVal != null) {
return size + CodedOutputStream.computeInt32Size(7,
typeVal.getNumber());
}
return size;
}

private int computeServerFeedbackFormSize(ServerFeedbackForm object) {


int size = (0 + computeStringSize(1, object.feedbackType)) +
computeStringSize(2, object.feedback);
String nameVal = object.name;
if (nameVal != null) {
size += computeStringSize(3, nameVal);
}
String emailVal = object.email;
if (emailVal != null) {
size += computeStringSize(4, emailVal);
}
Integer starRatingVal = object.starRating;
if (starRatingVal != null) {
size += CodedOutputStream.computeInt32Size(5,
starRatingVal.intValue());
}
byte[] screenshotVal = object.screenshot;
if (screenshotVal != null) {
return size + CodedOutputStream.computeBytesSize(6,
computeByteArraySize(screenshotVal));
}
return size;
}

private int
computeServerFinishExternalProviderImportSize(ServerFinishExternalProviderImport
object) {
int size = 0;
String importIdVal = object.importId;
if (importIdVal != null) {
size = 0 + computeStringSize(1, importIdVal);
}
FinishContactImport finishContactImportDataVal =
object.finishContactImportData;
if (finishContactImportDataVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeFinishContactImportSize(finishContactImportDataVal));
}
FinishPhotoImport finishPhotoImportDataVal = object.finishPhotoImportData;
if (finishPhotoImportDataVal != null) {
return size + CodedOutputStream.computeBytesSize(3,
computeFinishPhotoImportSize(finishPhotoImportDataVal));
}
return size;
}

private int computeServerFinishFriendsImportSize(ServerFinishFriendsImport


object) {
int size = 0;
String importIdVal = object.importId;
if (importIdVal != null) {
size = 0 + computeStringSize(1, importIdVal);
}
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computePhonebookContactSize((PhonebookContact) contactsList.elementAt(c)));
}
}
Boolean smsAlreadySentVal = object.smsAlreadySent;
if (smsAlreadySentVal != null) {
return size + CodedOutputStream.computeBoolSize(3,
smsAlreadySentVal.booleanValue());
}
return size;
}

private int computeServerFolderActionSize(ServerFolderAction object) {


int size = (0 + CodedOutputStream.computeInt32Size(1,
object.folderId.getNumber())) + computeStringSize(2, object.personId);
String customFolderIdVal = object.customFolderId;
if (customFolderIdVal != null) {
size += computeStringSize(3, customFolderIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(5,
contextVal.getNumber());
}
return size;
}

private int computeServerGetAlbumSize(ServerGetAlbum object) {


int size = 0;
String personIdVal = object.personId;
if (personIdVal != null) {
size = 0 + computeStringSize(1, personIdVal);
}
String albumIdVal = object.albumId;
if (albumIdVal != null) {
size += computeStringSize(2, albumIdVal);
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
size += CodedOutputStream.computeInt32Size(3, offsetVal.intValue());
}
Integer countVal = object.count;
if (countVal != null) {
size += CodedOutputStream.computeInt32Size(4, countVal.intValue());
}
AlbumType albumTypeVal = object.albumType;
if (albumTypeVal != null) {
return size + CodedOutputStream.computeInt32Size(5,
albumTypeVal.getNumber());
}
return size;
}

private int computeServerGetAwardSize(ServerGetAward object) {


int size = 0;
String awardIdVal = object.awardId;
if (awardIdVal != null) {
size = 0 + computeStringSize(1, awardIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(2,
contextVal.getNumber());
}
return size;
}

private int computeServerGetCaptchaSize(ServerGetCaptcha object) {


int size = 0 + computeStringSize(1, object.uid);
Boolean forceNewVal = object.forceNew;
if (forceNewVal != null) {
return size + CodedOutputStream.computeBoolSize(2,
forceNewVal.booleanValue());
}
return size;
}
private int computeServerGetChatMessagesSize(ServerGetChatMessages object) {
int size = 0 + computeStringSize(1, object.chatInstanceId);
PaginationPosition beginsAtVal = object.beginsAt;
if (beginsAtVal != null) {
size += CodedOutputStream.computeInt32Size(2, beginsAtVal.getNumber());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
size += CodedOutputStream.computeInt32Size(3, offsetVal.intValue());
}
Long messageIdVal = object.messageId;
if (messageIdVal != null) {
size += CodedOutputStream.computeInt64Size(4,
messageIdVal.longValue());
}
Integer countVal = object.count;
if (countVal != null) {
size += CodedOutputStream.computeInt32Size(5, countVal.intValue());
}
TraversalDirection directionVal = object.direction;
if (directionVal != null) {
size += CodedOutputStream.computeInt32Size(6,
directionVal.getNumber());
}
Boolean inclusiveVal = object.inclusive;
if (inclusiveVal != null) {
return size + CodedOutputStream.computeBoolSize(7,
inclusiveVal.booleanValue());
}
return size;
}

private int computeServerGetCitySize(ServerGetCity object) {


int size = 0;
Integer cityIdVal = object.cityId;
if (cityIdVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, cityIdVal.intValue());
}
String userIdVal = object.userId;
if (userIdVal != null) {
size += computeStringSize(2, userIdVal);
}
Double longitudeVal = object.longitude;
if (longitudeVal != null) {
size += CodedOutputStream.computeDoubleSize(3,
longitudeVal.doubleValue());
}
Double latitudeVal = object.latitude;
if (latitudeVal != null) {
return size + CodedOutputStream.computeDoubleSize(4,
latitudeVal.doubleValue());
}
return size;
}

private int computeServerGetEncountersSize(ServerGetEncounters object) {


int size = 0;
Integer offsetVal = object.offset;
if (offsetVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(2, offsetVal.intValue());
}
size += CodedOutputStream.computeInt32Size(3, object.number);
String lastPersonIdVal = object.lastPersonId;
if (lastPersonIdVal != null) {
size += computeStringSize(4, lastPersonIdVal);
}
Vector requestedPersonIdsList = object.requestedPersonIds;
if (requestedPersonIdsList != null) {
for (int c = 0; c < requestedPersonIdsList.size(); c++) {
size += computeStringSize(5, (String)
requestedPersonIdsList.elementAt(c));
}
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(6,
contextVal.getNumber());
}
return size;
}

private int computeServerGetExternalProvidersSize(ServerGetExternalProviders


object) {
int size = 0;
String redirectUrlVal = object.redirectUrl;
if (redirectUrlVal != null) {
size = 0 + computeStringSize(1, redirectUrlVal);
}
PhoneBookReferrer sourceVal = object.source;
if (sourceVal != null) {
size += CodedOutputStream.computeInt32Size(2, sourceVal.getNumber());
}
ExternalProviderContext contextVal = object.context;
if (contextVal != null) {
size += CodedOutputStream.computeInt32Size(3, contextVal.getNumber());
}
Vector nativeSupportList = object.nativeSupport;
if (nativeSupportList != null) {
for (int c = 0; c < nativeSupportList.size(); c++) {
size += CodedOutputStream.computeInt32Size(4,
((ExternalProviderType) nativeSupportList.elementAt(c)).getNumber());
}
}
ClientSource referrerVal = object.referrer;
if (referrerVal != null) {
size += CodedOutputStream.computeInt32Size(5, referrerVal.getNumber());
}
String personIdVal = object.personId;
if (personIdVal != null) {
return size + computeStringSize(6, personIdVal);
}
return size;
}

private int computeServerGetPersonProfileSize(ServerGetPersonProfile object) {


return 0 + computeStringSize(1, object.personId);
}
private int computeServerGetPhotosToRateSize(ServerGetPhotosToRate object) {
int size = 0;
String lastKnownPhotoIdVal = object.lastKnownPhotoId;
if (lastKnownPhotoIdVal != null) {
size = 0 + computeStringSize(1, lastKnownPhotoIdVal);
}
Integer countVal = object.count;
if (countVal != null) {
size += CodedOutputStream.computeInt32Size(2, countVal.intValue());
}
RateFilter filterVal = object.filter;
if (filterVal != null) {
return size + CodedOutputStream.computeBytesSize(3,
computeRateFilterSize(filterVal));
}
return size;
}

private int computeServerGetProfileScoreSize(ServerGetProfileScore object) {


int size = 0;
String uidVal = object.uid;
if (uidVal != null) {
size = 0 + computeStringSize(1, uidVal);
}
String pushIdVal = object.pushId;
if (pushIdVal != null) {
return size + computeStringSize(2, pushIdVal);
}
return size;
}

private int
computeServerGetSocialFriendsConnectionsSize(ServerGetSocialFriendsConnections
object) {
int size = 0;
String personIdVal = object.personId;
if (personIdVal != null) {
size = 0 + computeStringSize(1, personIdVal);
}
ClientSource sourceVal = object.source;
if (sourceVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
sourceVal.getNumber());
}
return size;
}

private int
computeServerGetSocialSharingProvidersSize(ServerGetSocialSharingProviders object)
{
int size = 0;
String uidVal = object.uid;
if (uidVal != null) {
size = 0 + computeStringSize(1, uidVal);
}
SocialSharingProviderContext contextDeprecatedVal =
object.contextDeprecated;
if (contextDeprecatedVal != null) {
size += CodedOutputStream.computeInt32Size(2,
contextDeprecatedVal.getNumber());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
contextVal.getNumber());
}
return size;
}

private int computeServerGetTiwIdeasSize(ServerGetTiwIdeas object) {


int size = 0;
String groupVal = object.group;
if (groupVal != null) {
size = 0 + computeStringSize(1, groupVal);
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
size += CodedOutputStream.computeInt32Size(2, offsetVal.intValue());
}
Integer limitVal = object.limit;
if (limitVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
limitVal.intValue());
}
return size;
}

private int computeServerGetUserListSize(ServerGetUserList object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.folderId.getNumber());
String sectionIdVal = object.sectionId;
if (sectionIdVal != null) {
size += computeStringSize(2, sectionIdVal);
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
size += CodedOutputStream.computeInt32Size(3, offsetVal.intValue());
}
Integer preferredCountVal = object.preferredCount;
if (preferredCountVal != null) {
size += CodedOutputStream.computeInt32Size(4,
preferredCountVal.intValue());
}
String versionVal = object.version;
if (versionVal != null) {
size += computeStringSize(5, versionVal);
}
Vector filterList = object.filter;
if (filterList != null) {
for (int c = 0; c < filterList.size(); c++) {
size += CodedOutputStream.computeInt32Size(6, ((UserListFilter)
filterList.elementAt(c)).getNumber());
}
}
String searchStringVal = object.searchString;
if (searchStringVal != null) {
size += computeStringSize(7, searchStringVal);
}
PhotoSize sectionUserPreviewImageSizeVal =
object.sectionUserPreviewImageSize;
if (sectionUserPreviewImageSizeVal != null) {
return size + CodedOutputStream.computeBytesSize(8,
computePhotoSizeSize(sectionUserPreviewImageSizeVal));
}
return size;
}

private int computeServerImageActionSize(ServerImageAction object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.action.getNumber());
String imageIdVal = object.imageId;
if (imageIdVal != null) {
return size + computeStringSize(2, imageIdVal);
}
return size;
}

private int computeServerInitSpotlightSize(ServerInitSpotlight object) {


byte[] spotlightServerVal = object.spotlightServer;
if (spotlightServerVal != null) {
return 0 + CodedOutputStream.computeBytesSize(1,
computeByteArraySize(spotlightServerVal));
}
return 0;
}

private int computeServerInterestsGetSize(ServerInterestsGet object) {


int size = 0;
String userIdVal = object.userId;
if (userIdVal != null) {
size = 0 + computeStringSize(1, userIdVal);
}
Integer groupIdVal = object.groupId;
if (groupIdVal != null) {
size += CodedOutputStream.computeInt32Size(2, groupIdVal.intValue());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
size += CodedOutputStream.computeInt32Size(3, offsetVal.intValue());
}
Integer limitVal = object.limit;
if (limitVal != null) {
size += CodedOutputStream.computeInt32Size(4, limitVal.intValue());
}
InterestSortOrder orderVal = object.order;
if (orderVal != null) {
return size + CodedOutputStream.computeInt32Size(5,
orderVal.getNumber());
}
return size;
}

private int computeServerLoginByPasswordSize(ServerLoginByPassword object) {


int size = (0 + computeStringSize(1, object.user)) + computeStringSize(2,
object.password);
String appTypeVal = object.appType;
if (appTypeVal != null) {
size += computeStringSize(3, appTypeVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
size += computeStringSize(4, userIdVal);
}
String captchaVal = object.captcha;
if (captchaVal != null) {
return size + computeStringSize(6, captchaVal);
}
return size;
}

private int computeServerOpenChatSize(ServerOpenChat object) {


int size = 0 + computeStringSize(1, object.chatInstanceId);
Long lastModifiedVal = object.lastModified;
if (lastModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
lastModifiedVal.longValue());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
size += CodedOutputStream.computeInt32Size(3, offsetVal.intValue());
}
FolderTypes folderIdVal = object.folderId;
if (folderIdVal != null) {
size += CodedOutputStream.computeInt32Size(4, folderIdVal.getNumber());
}
PhotoSize multimediaPreviewImageSizeVal =
object.multimediaPreviewImageSize;
if (multimediaPreviewImageSizeVal != null) {
size += CodedOutputStream.computeBytesSize(5,
computePhotoSizeSize(multimediaPreviewImageSizeVal));
}
PhotoSize multimediaLargeImageSizeVal = object.multimediaLargeImageSize;
if (multimediaLargeImageSizeVal != null) {
return size + CodedOutputStream.computeBytesSize(6,
computePhotoSizeSize(multimediaLargeImageSizeVal));
}
return size;
}

private int computeServerPersonProfileEditFormSize(ServerPersonProfileEditForm


object) {
int size = 0;
Vector typeList = object.type;
if (typeList != null) {
for (int c = 0; c < typeList.size(); c++) {
size += CodedOutputStream.computeInt32Size(1, ((ProfileOptionType)
typeList.elementAt(c)).getNumber());
}
}
return size;
}

private int computeServerRatePhotoSize(ServerRatePhoto object) {


int size = 0;
String photoIdVal = object.photoId;
if (photoIdVal != null) {
size = 0 + computeStringSize(1, photoIdVal);
}
Boolean skipVal = object.skip;
if (skipVal != null) {
size += CodedOutputStream.computeBoolSize(2, skipVal.booleanValue());
}
Integer ratingVal = object.rating;
if (ratingVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
ratingVal.intValue());
}
return size;
}

private int computeServerRegistrationSize(ServerRegistration object) {


int size = 0;
String nameVal = object.name;
if (nameVal != null) {
size = 0 + computeStringSize(1, nameVal);
}
SexType genderVal = object.gender;
if (genderVal != null) {
size += CodedOutputStream.computeInt32Size(2, genderVal.getNumber());
}
String dobVal = object.dob;
if (dobVal != null) {
size += computeStringSize(3, dobVal);
}
Integer tiwPhraseIdVal = object.tiwPhraseId;
if (tiwPhraseIdVal != null) {
size += CodedOutputStream.computeInt32Size(4,
tiwPhraseIdVal.intValue());
}
String passwordVal = object.password;
if (passwordVal != null) {
size += computeStringSize(5, passwordVal);
}
Boolean preferMaleVal = object.preferMale;
if (preferMaleVal != null) {
size += CodedOutputStream.computeBoolSize(6,
preferMaleVal.booleanValue());
}
Boolean preferFemaleVal = object.preferFemale;
if (preferFemaleVal != null) {
size += CodedOutputStream.computeBoolSize(7,
preferFemaleVal.booleanValue());
}
String inviteIdVal = object.inviteId;
if (inviteIdVal != null) {
size += computeStringSize(8, inviteIdVal);
}
String appIdVal = object.appId;
if (appIdVal != null) {
size += computeStringSize(9, appIdVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
size += computeStringSize(10, userIdVal);
}
String emailVal = object.email;
if (emailVal != null) {
size += computeStringSize(11, emailVal);
}
String phoneVal = object.phone;
if (phoneVal != null) {
size += computeStringSize(12, phoneVal);
}
Integer locationIdVal = object.locationId;
if (locationIdVal != null) {
size += CodedOutputStream.computeInt32Size(13,
locationIdVal.intValue());
}
Boolean phoneConfirmedVal = object.phoneConfirmed;
if (phoneConfirmedVal != null) {
return size + CodedOutputStream.computeBoolSize(14,
phoneConfirmedVal.booleanValue());
}
return size;
}

private int computeServerRequestAlbumAccessSize(ServerRequestAlbumAccess


object) {
return (0 + computeStringSize(1, object.personId)) + computeStringSize(2,
object.albumId);
}

private int
computeServerRequestAlbumAccessLevelSize(ServerRequestAlbumAccessLevel object) {
int size = 0 + computeStringSize(1, object.personId);
String albumIdVal = object.albumId;
if (albumIdVal != null) {
return size + computeStringSize(2, albumIdVal);
}
return size;
}

private int computeServerSectionUserActionSize(ServerSectionUserAction object)


{
int size = 0;
SectionActionType actionVal = object.action;
if (actionVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
actionVal.getNumber());
}
FolderTypes folderIdVal = object.folderId;
if (folderIdVal != null) {
size += CodedOutputStream.computeInt32Size(2, folderIdVal.getNumber());
}
Vector userListList = object.userList;
if (userListList != null) {
for (int c = 0; c < userListList.size(); c++) {
size += CodedOutputStream.computeBytesSize(3,
computeSectionUserActionListSize((SectionUserActionList)
userListList.elementAt(c)));
}
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
contextVal.getNumber());
}
return size;
}

private int computeServerSendSlotsSize(ServerSendSlots object) {


int size = 0;
Vector uidList = object.uid;
if (uidList != null) {
for (int c = 0; c < uidList.size(); c++) {
size += computeStringSize(1, (String) uidList.elementAt(c));
}
}
Boolean useMineVal = object.useMine;
if (useMineVal != null) {
return size + CodedOutputStream.computeBoolSize(2,
useMineVal.booleanValue());
}
return size;
}

private int computeServerSendUserReportSize(ServerSendUserReport object) {


int size = (0 + computeStringSize(1, object.reportTypeId)) +
computeStringSize(2, object.personId);
String commentVal = object.comment;
if (commentVal != null) {
size += computeStringSize(3, commentVal);
}
Boolean blockUserVal = object.blockUser;
if (blockUserVal != null) {
return size + CodedOutputStream.computeBoolSize(4,
blockUserVal.booleanValue());
}
return size;
}

private int computeServerSlotRequestsSentSize(ServerSlotRequestsSent object) {


int size = 0;
Vector fbIdList = object.fbId;
if (fbIdList != null) {
for (int c = 0; c < fbIdList.size(); c++) {
size += computeStringSize(1, (String) fbIdList.elementAt(c));
}
}
String uidVal = object.uid;
if (uidVal != null) {
return size + computeStringSize(2, uidVal);
}
return size;
}

private int
computeServerStartExternalProviderImportSize(ServerStartExternalProviderImport
object) {
int size = 0;
ClientSource contextVal = object.context;
if (contextVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
contextVal.getNumber());
}
ExternalProviderSecurityCredentials authCredentialsVal =
object.authCredentials;
if (authCredentialsVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeExternalProviderSecurityCredentialsSize(authCredentialsVal));
}
StartContactImport startContactImportDataVal =
object.startContactImportData;
if (startContactImportDataVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeStartContactImportSize(startContactImportDataVal));
}
StartPhotoImport startPhotoImportDataVal = object.startPhotoImportData;
if (startPhotoImportDataVal != null) {
return size + CodedOutputStream.computeBytesSize(4,
computeStartPhotoImportSize(startPhotoImportDataVal));
}
return size;
}

private int computeServerStartFriendsImportSize(ServerStartFriendsImport


object) {
int size = 0;
String providerIdVal = object.providerId;
if (providerIdVal != null) {
size = 0 + computeStringSize(1, providerIdVal);
}
FriendsImportSecurityCredentials credentialsVal = object.credentials;
if (credentialsVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeFriendsImportSecurityCredentialsSize(credentialsVal));
}
Vector contactList = object.contact;
if (contactList != null) {
for (int c = 0; c < contactList.size(); c++) {
size += CodedOutputStream.computeBytesSize(3,
computePhonebookContactSize((PhonebookContact) contactList.elementAt(c)));
}
}
FriendsImportFlow flowVal = object.flow;
if (flowVal != null) {
size += CodedOutputStream.computeInt32Size(4, flowVal.getNumber());
}
String personIdVal = object.personId;
if (personIdVal != null) {
size += computeStringSize(5, personIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
size += CodedOutputStream.computeInt32Size(7, contextVal.getNumber());
}
ExternalProviderSecurityCredentials authCredentialsVal =
object.authCredentials;
if (authCredentialsVal != null) {
return size + CodedOutputStream.computeBytesSize(8,
computeExternalProviderSecurityCredentialsSize(authCredentialsVal));
}
return size;
}

private int computeServerUpdateLocationSize(ServerUpdateLocation object) {


int c;
int size = 0;
Vector locationList = object.location;
if (locationList != null) {
for (c = 0; c < locationList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeGeoLocationSize((GeoLocation) locationList.elementAt(c)));
}
}
Vector cellIdList = object.cellId;
if (cellIdList != null) {
for (c = 0; c < cellIdList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeCellIDSize((CellID) cellIdList.elementAt(c)));
}
}
Vector androidWifisList = object.androidWifis;
if (androidWifisList != null) {
for (c = 0; c < androidWifisList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeAndroidWifiSize((AndroidWifi) androidWifisList.elementAt(c)));
}
}
return size;
}

private int computeServerUpdateSessionSize(ServerUpdateSession object) {


int size = 0;
String affiliateVal = object.affiliate;
if (affiliateVal != null) {
size = 0 + computeStringSize(1, affiliateVal);
}
String apsTokenVal = object.apsToken;
if (apsTokenVal != null) {
size += computeStringSize(2, apsTokenVal);
}
String deviceRegidVal = object.deviceRegid;
if (deviceRegidVal != null) {
size += computeStringSize(3, deviceRegidVal);
}
String msPushChannelUriVal = object.msPushChannelUri;
if (msPushChannelUriVal != null) {
size += computeStringSize(4, msPushChannelUriVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
return size + computeStringSize(5, userIdVal);
}
return size;
}

private int computeServerUploadPhotoSize(ServerUploadPhoto object) {


int size = 0;
String albumIdVal = object.albumId;
if (albumIdVal != null) {
size = 0 + computeStringSize(1, albumIdVal);
}
Object photoVal = object.photo;
if (photoVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeByteArraySize(photoVal));
}
PhotoSourceType photoSourceVal = object.photoSource;
if (photoSourceVal != null) {
size += CodedOutputStream.computeInt32Size(4,
photoSourceVal.getNumber());
}
String guidVal = object.guid;
if (guidVal != null) {
size += computeStringSize(5, guidVal);
}
FeatureType uploadTriggerVal = object.uploadTrigger;
if (uploadTriggerVal != null) {
size += CodedOutputStream.computeInt32Size(6,
uploadTriggerVal.getNumber());
}
String photoToReplaceVal = object.photoToReplace;
if (photoToReplaceVal != null) {
size += computeStringSize(7, photoToReplaceVal);
}
String photoIdVal = object.photoId;
if (photoIdVal != null) {
return size + computeStringSize(8, photoIdVal);
}
return size;
}

private int computeServerUserRemoveVerifySize(ServerUserRemoveVerify object) {


return 0 + CodedOutputStream.computeInt32Size(1,
object.verificationType.getNumber());
}

private int computeServerUserVerifiedGetSize(ServerUserVerifiedGet object) {


int size = 0;
String contextUserIdVal = object.contextUserId;
if (contextUserIdVal != null) {
size = 0 + computeStringSize(2, contextUserIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(3,
contextVal.getNumber());
}
return size;
}

private int computeServerUserVerifySize(ServerUserVerify object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.type.getNumber());
String tokenVal = object.token;
if (tokenVal != null) {
size += computeStringSize(2, tokenVal);
}
UserVerifyAdditionalData additionalDataVal = object.additionalData;
if (additionalDataVal != null) {
return size + CodedOutputStream.computeBytesSize(3,
computeUserVerifyAdditionalDataSize(additionalDataVal));
}
return size;
}

private int computeSharingStatsSize(SharingStats object) {


int size = 0;
String awardIdVal = object.awardId;
if (awardIdVal != null) {
size = 0 + computeStringSize(1, awardIdVal);
}
String providerIdVal = object.providerId;
if (providerIdVal != null) {
size += computeStringSize(2, providerIdVal);
}
SharingStatsType sharingStatsTypeVal = object.sharingStatsType;
if (sharingStatsTypeVal != null) {
size += CodedOutputStream.computeInt32Size(3,
sharingStatsTypeVal.getNumber());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
contextVal.getNumber());
}
return size;
}

private int computeSlotAvailabilityInfoSize(SlotAvailabilityInfo object) {


int size = 0;
SlotAvailabilityState stateVal = object.state;
if (stateVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, stateVal.getNumber());
}
Integer totalSlotsVal = object.totalSlots;
if (totalSlotsVal != null) {
size += CodedOutputStream.computeInt32Size(2,
totalSlotsVal.intValue());
}
Integer usedSlotsVal = object.usedSlots;
if (usedSlotsVal != null) {
size += CodedOutputStream.computeInt32Size(3, usedSlotsVal.intValue());
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
return size + computeStringSize(4, displayMessageVal);
}
return size;
}

private int computeSocialFriendsConnectionSize(SocialFriendsConnection object)


{
int c;
int size = 0;
Vector friendsList = object.friends;
if (friendsList != null) {
for (c = 0; c < friendsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhonebookContactSize((PhonebookContact) friendsList.elementAt(c)));
}
}
Vector firstConnectionProviderUrlList = object.firstConnectionProviderUrl;
if (firstConnectionProviderUrlList != null) {
for (c = 0; c < firstConnectionProviderUrlList.size(); c++) {
size += computeStringSize(2, (String)
firstConnectionProviderUrlList.elementAt(c));
}
}
return size;
}

private int
computeSocialFriendsConnectionsBlockSize(SocialFriendsConnectionsBlock object) {
int c;
int size = 0;
Integer totalVal = object.total;
if (totalVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, totalVal.intValue());
}
Vector connectionsList = object.connections;
if (connectionsList != null) {
for (c = 0; c < connectionsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeSocialFriendsConnectionSize((SocialFriendsConnection)
connectionsList.elementAt(c)));
}
}
Vector providersMainList = object.providersMain;
if (providersMainList != null) {
for (c = 0; c < providersMainList.size(); c++) {
size += CodedOutputStream.computeBytesSize(3,
computeFriendsImportProviderSize((FriendsImportProvider)
providersMainList.elementAt(c)));
}
}
Vector providersMoreList = object.providersMore;
if (providersMoreList != null) {
for (c = 0; c < providersMoreList.size(); c++) {
size += CodedOutputStream.computeBytesSize(4,
computeFriendsImportProviderSize((FriendsImportProvider)
providersMoreList.elementAt(c)));
}
}
String providersBlockTitleVal = object.providersBlockTitle;
if (providersBlockTitleVal != null) {
size += computeStringSize(5, providersBlockTitleVal);
}
SocialConnectionStatus statusVal = object.status;
if (statusVal != null) {
size += CodedOutputStream.computeInt32Size(6, statusVal.getNumber());
}
PromoActionsBlock promoActionBlockVal = object.promoActionBlock;
if (promoActionBlockVal != null) {
size += CodedOutputStream.computeBytesSize(7,
computePromoActionsBlockSize(promoActionBlockVal));
}
Vector circlesList = object.circles;
if (circlesList != null) {
for (c = 0; c < circlesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(8,
computeCircleDescriptionSize((CircleDescription) circlesList.elementAt(c)));
}
}
String connectionsBlockTitleVal = object.connectionsBlockTitle;
if (connectionsBlockTitleVal != null) {
size += computeStringSize(9, connectionsBlockTitleVal);
}
String legalTextVal = object.legalText;
if (legalTextVal != null) {
size += computeStringSize(10, legalTextVal);
}
String phonebookImportLegalNoticeTitleVal =
object.phonebookImportLegalNoticeTitle;
if (phonebookImportLegalNoticeTitleVal != null) {
size += computeStringSize(11, phonebookImportLegalNoticeTitleVal);
}
String phonebookImportLegalNoticeMessageVal =
object.phonebookImportLegalNoticeMessage;
if (phonebookImportLegalNoticeMessageVal != null) {
size += computeStringSize(12, phonebookImportLegalNoticeMessageVal);
}
Vector moreConnectionsList = object.moreConnections;
if (moreConnectionsList != null) {
for (c = 0; c < moreConnectionsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(13,
computeSocialFriendsConnectionSize((SocialFriendsConnection)
moreConnectionsList.elementAt(c)));
}
}
Vector mainProvidersList = object.mainProviders;
if (mainProvidersList != null) {
for (c = 0; c < mainProvidersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(14,
computeExternalProviderSize((ExternalProvider) mainProvidersList.elementAt(c)));
}
}
Vector moreProvidersList = object.moreProviders;
if (moreProvidersList != null) {
for (c = 0; c < moreProvidersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(15,
computeExternalProviderSize((ExternalProvider) moreProvidersList.elementAt(c)));
}
}
return size;
}

private int computeSocialNetworkInfoSize(SocialNetworkInfo object) {


int size = 0;
ExternalProvider externalProviderVal = object.externalProvider;
if (externalProviderVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computeExternalProviderSize(externalProviderVal));
}
String urlVal = object.url;
if (urlVal != null) {
size += computeStringSize(2, urlVal);
}
String handleVal = object.handle;
if (handleVal != null) {
return size + computeStringSize(3, handleVal);
}
return size;
}

private int computeSocialSharingProviderSize(SocialSharingProvider object) {


int c;
int size = 0;
String sharingDescriptionVal = object.sharingDescription;
if (sharingDescriptionVal != null) {
size = 0 + computeStringSize(1, sharingDescriptionVal);
}
String sharingUrlVal = object.sharingUrl;
if (sharingUrlVal != null) {
size += computeStringSize(2, sharingUrlVal);
}
FriendsImportProvider providerDetailsVal = object.providerDetails;
if (providerDetailsVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeFriendsImportProviderSize(providerDetailsVal));
}
Vector sharingImagesList = object.sharingImages;
if (sharingImagesList != null) {
for (c = 0; c < sharingImagesList.size(); c++) {
size += computeStringSize(4, (String)
sharingImagesList.elementAt(c));
}
}
ExternalProvider externalProviderDetailsVal =
object.externalProviderDetails;
if (externalProviderDetailsVal != null) {
size += CodedOutputStream.computeBytesSize(5,
computeExternalProviderSize(externalProviderDetailsVal));
}
Vector displayImagesList = object.displayImages;
if (displayImagesList != null) {
for (c = 0; c < displayImagesList.size(); c++) {
size += computeStringSize(6, (String)
displayImagesList.elementAt(c));
}
}
Vector tagsList = object.tags;
if (tagsList != null) {
for (c = 0; c < tagsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(7, computeTagSize((Tag)
tagsList.elementAt(c)));
}
}
Vector sharingVideosList = object.sharingVideos;
if (sharingVideosList != null) {
for (c = 0; c < sharingVideosList.size(); c++) {
size += computeStringSize(8, (String)
sharingVideosList.elementAt(c));
}
}
Vector displayStringList = object.displayString;
if (displayStringList != null) {
for (c = 0; c < displayStringList.size(); c++) {
size += computeStringSize(9, (String)
displayStringList.elementAt(c));
}
}
return size;
}

private int computeSpotlightCommandSize(SpotlightCommand object) {


int size = 0;
Vector itemsList = object.items;
if (itemsList != null) {
for (int c = 0; c < itemsList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeSpotlightCommandItemSize((SpotlightCommandItem) itemsList.elementAt(c)));
}
}
return size;
}

private int computeSpotlightCommandItemSize(SpotlightCommandItem object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.type.getNumber());
SpotlightScroll scrollVal = object.scroll;
if (scrollVal != null) {
size += CodedOutputStream.computeBytesSize(2,
computeSpotlightScrollSize(scrollVal));
}
SpotlightDiffAdd addVal = object.add;
if (addVal != null) {
size += CodedOutputStream.computeBytesSize(3,
computeSpotlightDiffAddSize(addVal));
}
SpotlightDiffRemove removeVal = object.remove;
if (removeVal != null) {
size += CodedOutputStream.computeBytesSize(4,
computeSpotlightDiffRemoveSize(removeVal));
}
SpotlightDiffUpdate updateVal = object.update;
if (updateVal != null) {
size += CodedOutputStream.computeBytesSize(5,
computeSpotlightDiffUpdateSize(updateVal));
}
SpotlightFullState fullStateVal = object.fullState;
if (fullStateVal != null) {
return size + CodedOutputStream.computeBytesSize(6,
computeSpotlightFullStateSize(fullStateVal));
}
return size;
}

private int computeSpotlightDiffAddSize(SpotlightDiffAdd object) {


int size = 0 + CodedOutputStream.computeInt64Size(1,
object.afterSpotlightId);
Vector userList = object.user;
if (userList != null) {
for (int c = 0; c < userList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeSectionUserSize((SectionUser) userList.elementAt(c)));
}
}
return size;
}

private int computeSpotlightDiffRemoveSize(SpotlightDiffRemove object) {


return 0 + CodedOutputStream.computeInt64Size(1, object.spotlightId);
}

private int computeSpotlightDiffUpdateSize(SpotlightDiffUpdate object) {


return 0 + CodedOutputStream.computeBytesSize(1,
computeSectionUserSize(object.changedData));
}

private int computeSpotlightFullStateSize(SpotlightFullState object) {


int size = 0;
Vector userList = object.user;
if (userList != null) {
for (int c = 0; c < userList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeSectionUserSize((SectionUser) userList.elementAt(c)));
}
}
return size;
}

private int computeSpotlightScrollSize(SpotlightScroll object) {


return 0 + CodedOutputStream.computeInt64Size(1, object.spotlightId);
}

private int computeSpotlightServerDataSize(SpotlightServerData object) {


int size = ((0 + computeStringSize(1, object.serverId)) +
CodedOutputStream.computeInt32Size(2, object.cityId)) +
CodedOutputStream.computeInt32Size(3, object.langId);
Integer platformIdVal = object.platformId;
if (platformIdVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
platformIdVal.intValue());
}
return size;
}

private int computeSppPurchaseStatisticSize(SppPurchaseStatistic object) {


int size = 0;
FeatureType sourceFeatureVal = object.sourceFeature;
if (sourceFeatureVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
sourceFeatureVal.getNumber());
}
Boolean purchaseCompleteVal = object.purchaseComplete;
if (purchaseCompleteVal != null) {
return size + CodedOutputStream.computeBoolSize(2,
purchaseCompleteVal.booleanValue());
}
return size;
}
private int computeStarRatingStatsSize(StarRatingStats object) {
int size = 0;
Boolean dismissedVal = object.dismissed;
if (dismissedVal != null) {
size = 0 + CodedOutputStream.computeBoolSize(1,
dismissedVal.booleanValue());
}
Boolean sharedVal = object.shared;
if (sharedVal != null) {
return size + CodedOutputStream.computeBoolSize(2,
sharedVal.booleanValue());
}
return size;
}

private int computeStartContactImportSize(StartContactImport object) {


int size = 0;
Vector contactList = object.contact;
if (contactList != null) {
for (int c = 0; c < contactList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computePhonebookContactSize((PhonebookContact) contactList.elementAt(c)));
}
}
FriendsImportFlow flowVal = object.flow;
if (flowVal != null) {
size += CodedOutputStream.computeInt32Size(2, flowVal.getNumber());
}
String personIdVal = object.personId;
if (personIdVal != null) {
return size + computeStringSize(3, personIdVal);
}
return size;
}

private int computeStartPhotoImportSize(StartPhotoImport object) {


AlbumType albumTypeVal = object.albumType;
if (albumTypeVal != null) {
return 0 + CodedOutputStream.computeInt32Size(1,
albumTypeVal.getNumber());
}
return 0;
}

private int computeStartupSettingsSize(StartupSettings object) {


int size = 0;
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
size += CodedOutputStream.computeBytesSize(1,
computeExternalStatsProviderSize((ExternalStatsProvider)
providersList.elementAt(c)));
}
}
return size;
}

private int computeSystemNotificationSize(SystemNotification object) {


int size = 0 + CodedOutputStream.computeInt32Size(1,
object.id.getNumber());
String registrationMethodVal = object.registrationMethod;
if (registrationMethodVal != null) {
return size + computeStringSize(2, registrationMethodVal);
}
return size;
}

private int computeTagSize(Tag object) {


int size = 0;
Point positionVal = object.position;
if (positionVal != null) {
size = 0 + CodedOutputStream.computeBytesSize(1,
computePointSize(positionVal));
}
String uidVal = object.uid;
if (uidVal != null) {
return size + computeStringSize(2, uidVal);
}
return size;
}

private int computeTiwIdeaSize(TiwIdea object) {


int size = 0;
Integer tiwPhraseIdVal = object.tiwPhraseId;
if (tiwPhraseIdVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
tiwPhraseIdVal.intValue());
}
String tiwPhraseVal = object.tiwPhrase;
if (tiwPhraseVal != null) {
size += computeStringSize(2, tiwPhraseVal);
}
Boolean showInterestedInVal = object.showInterestedIn;
if (showInterestedInVal != null) {
return size + CodedOutputStream.computeBoolSize(3,
showInterestedInVal.booleanValue());
}
return size;
}

private int computeTiwIdeasSize(TiwIdeas object) {


int size = 0;
Vector tiwIdeasList = object.tiwIdeas;
if (tiwIdeasList != null) {
for (int c = 0; c < tiwIdeasList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeTiwIdeaSize((TiwIdea) tiwIdeasList.elementAt(c)));
}
}
return size;
}

private int computeTrustedNetworkStatsSize(TrustedNetworkStats object) {


int size = 0;
String providerIdVal = object.providerId;
if (providerIdVal != null) {
size = 0 + computeStringSize(2, providerIdVal);
}
String personIdVal = object.personId;
if (personIdVal != null) {
size += computeStringSize(3, personIdVal);
}
ClientSource sourceScreenVal = object.sourceScreen;
if (sourceScreenVal != null) {
return size + CodedOutputStream.computeInt32Size(4,
sourceScreenVal.getNumber());
}
return size;
}

private int computeTrustedPromoBlockSize(TrustedPromoBlock object) {


int c;
int size = 0;
SocialConnectionStatus statusVal = object.status;
if (statusVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
statusVal.getNumber());
}
Vector circlesList = object.circles;
if (circlesList != null) {
for (c = 0; c < circlesList.size(); c++) {
size += CodedOutputStream.computeBytesSize(2,
computeCircleDescriptionSize((CircleDescription) circlesList.elementAt(c)));
}
}
String potentialFriendsVal = object.potentialFriends;
if (potentialFriendsVal != null) {
size += computeStringSize(3, potentialFriendsVal);
}
Vector displayImagesList = object.displayImages;
if (displayImagesList != null) {
for (c = 0; c < displayImagesList.size(); c++) {
size += computeStringSize(4, (String)
displayImagesList.elementAt(c));
}
}
PromoActionsBlock promoActionBlockVal = object.promoActionBlock;
if (promoActionBlockVal != null) {
return size + CodedOutputStream.computeBytesSize(5,
computePromoActionsBlockSize(promoActionBlockVal));
}
return size;
}

private int computeTupleSize(Tuple object) {


return (0 + CodedOutputStream.computeBytesSize(1,
computeAnonymousObjectSize(object.key))) + CodedOutputStream.computeBytesSize(2,
computeAnonymousObjectSize(object.value));
}

private int computeUnsubscribeInfoSize(UnsubscribeInfo object) {


int size = 0;
UnsubscribeFlow flowVal = object.flow;
if (flowVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1, flowVal.getNumber());
}
String infoVal = object.info;
if (infoVal != null) {
size += computeStringSize(2, infoVal);
}
String urlVal = object.url;
if (urlVal != null) {
size += computeStringSize(3, urlVal);
}
UnsubscribeInfoClientApi clientApiDataVal = object.clientApiData;
if (clientApiDataVal != null) {
return size + CodedOutputStream.computeBytesSize(4,
computeUnsubscribeInfoClientApiSize(clientApiDataVal));
}
return size;
}

private int computeUnsubscribeInfoClientApiSize(UnsubscribeInfoClientApi


object) {
int size = 0;
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
size = 0 + CodedOutputStream.computeInt32Size(1,
providerVal.getNumber());
}
String providerKeyVal = object.providerKey;
if (providerKeyVal != null) {
size += computeStringSize(2, providerKeyVal);
}
String transactionIdVal = object.transactionId;
if (transactionIdVal != null) {
return size + computeStringSize(3, transactionIdVal);
}
return size;
}

private int computeUpdatedProfileValuesSize(UpdatedProfileValues object) {


int size = 0;
String profileOptionIdVal = object.profileOptionId;
if (profileOptionIdVal != null) {
size = 0 + computeStringSize(1, profileOptionIdVal);
}
String profileOptionValueVal = object.profileOptionValue;
if (profileOptionValueVal != null) {
return size + computeStringSize(2, profileOptionValueVal);
}
return size;
}

private int computeUserBasicInfoSize(UserBasicInfo object) {


int size = 0;
String nameVal = object.name;
if (nameVal != null) {
size = 0 + computeStringSize(1, nameVal);
}
SexType genderVal = object.gender;
if (genderVal != null) {
size += CodedOutputStream.computeInt32Size(2, genderVal.getNumber());
}
String dobVal = object.dob;
if (dobVal != null) {
return size + computeStringSize(3, dobVal);
}
return size;
}

private int computeUserReportTypeSize(UserReportType object) {


int size = 0 + computeStringSize(1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
size += CodedOutputStream.computeInt64Size(2,
dateModifiedVal.longValue());
}
size = (size + computeStringSize(3, object.name)) + computeStringSize(4,
object.introText);
Boolean messageRequiredVal = object.messageRequired;
if (messageRequiredVal != null) {
return size + CodedOutputStream.computeBoolSize(5,
messageRequiredVal.booleanValue());
}
return size;
}

private int
computeUserVerificationMethodStatusSize(UserVerificationMethodStatus object) {
int size = (0 + CodedOutputStream.computeInt32Size(1,
object.type.getNumber())) + computeStringSize(2, object.name);
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
size += computeStringSize(3, displayMessageVal);
}
String verificationDataVal = object.verificationData;
if (verificationDataVal != null) {
size += computeStringSize(4, verificationDataVal);
}
Boolean isConnectedVal = object.isConnected;
if (isConnectedVal != null) {
size += CodedOutputStream.computeBoolSize(5,
isConnectedVal.booleanValue());
}
Boolean isConfirmedVal = object.isConfirmed;
if (isConfirmedVal != null) {
return size + CodedOutputStream.computeBoolSize(6,
isConfirmedVal.booleanValue());
}
return size;
}

private int computeUserVerifyAdditionalDataSize(UserVerifyAdditionalData


object) {
int size = 0;
String vkontakteRedirectUrlVal = object.vkontakteRedirectUrl;
if (vkontakteRedirectUrlVal != null) {
size = 0 + computeStringSize(1, vkontakteRedirectUrlVal);
}
String phonePinVal = object.phonePin;
if (phonePinVal != null) {
size += computeStringSize(2, phonePinVal);
}
Boolean phonePinRequestVal = object.phonePinRequest;
if (phonePinRequestVal != null) {
return size + CodedOutputStream.computeBoolSize(3,
phonePinRequestVal.booleanValue());
}
return size;
}

private int computeMessageSize(Hashtable object) {


int size = 0 + CodedOutputStream.computeInt32Size(1, ((MessageType)
object.get("name")).getNumber());
Object bodyVal = object.get("body");
if (bodyVal != null) {
return size + CodedOutputStream.computeBytesSize(2,
computeAnonymousObjectSize(bodyVal));
}
return size;
}

private int computeServerRequestPictureSize(Hashtable object) {


int size = 0 + computeStringSize(1, (String) object.get("picture_uri"));
String shortIdVal = (String) object.get("short_id");
if (shortIdVal != null) {
size += computeStringSize(2, shortIdVal);
}
Boolean respondIfNotFoundVal = (Boolean)
object.get("respond_if_not_found");
if (respondIfNotFoundVal != null) {
size += CodedOutputStream.computeBoolSize(3,
respondIfNotFoundVal.booleanValue());
}
Integer preferredWidthVal = (Integer) object.get("preferred_width");
if (preferredWidthVal != null) {
size += CodedOutputStream.computeInt32Size(4,
preferredWidthVal.intValue());
}
Integer preferredHeightVal = (Integer) object.get("preferred_height");
if (preferredHeightVal != null) {
return size + CodedOutputStream.computeInt32Size(5,
preferredHeightVal.intValue());
}
return size;
}

private void encodeServerPromoAccepted(CodedOutputStream out,


ServerPromoAccepted object) throws IOException {
String valueVal = object.value;
if (valueVal != null) {
encodeString(out, 1, valueVal);
}
}

private void encodeABTest(CodedOutputStream out, ABTest object) throws


IOException {
String testIdVal = object.testId;
if (testIdVal != null) {
encodeString(out, 1, testIdVal);
}
String variationIdVal = object.variationId;
if (variationIdVal != null) {
encodeString(out, 2, variationIdVal);
}
}

private void encodeABTestingSettings(CodedOutputStream out, ABTestingSettings


object) throws IOException {
Vector testsList = object.tests;
if (testsList != null) {
for (int c = 0; c < testsList.size(); c++) {
ABTest testsVal = (ABTest) testsList.elementAt(c);
out.writeBytes(1, computeABTestSize(testsVal));
encodeABTest(out, testsVal);
}
}
}

private void encodeAlbum(CodedOutputStream out, Album object) throws


IOException {
encodeString(out, 1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
out.writeInt64(2, dateModifiedVal.longValue());
}
encodeString(out, 3, object.name);
encodeString(out, 4, object.ownerId);
String previewImageIdVal = object.previewImageId;
if (previewImageIdVal != null) {
encodeString(out, 5, previewImageIdVal);
}
Integer accessTypeVal = object.accessType;
if (accessTypeVal != null) {
out.writeInt32(8, accessTypeVal.intValue());
}
out.writeBool(9, object.accessable);
out.writeBool(10, object.adult);
Boolean requiresModerationVal = object.requiresModeration;
if (requiresModerationVal != null) {
out.writeBool(11, requiresModerationVal.booleanValue());
}
Boolean allowEditVal = object.allowEdit;
if (allowEditVal != null) {
out.writeBool(12, allowEditVal.booleanValue());
}
Integer countOfPhotosVal = object.countOfPhotos;
if (countOfPhotosVal != null) {
out.writeInt32(13, countOfPhotosVal.intValue());
}
String instructionVal = object.instruction;
if (instructionVal != null) {
encodeString(out, 14, instructionVal);
}
Boolean isUploadForbiddenVal = object.isUploadForbidden;
if (isUploadForbiddenVal != null) {
out.writeBool(15, isUploadForbiddenVal.booleanValue());
}
Vector photosList = object.photos;
if (photosList != null) {
for (int c = 0; c < photosList.size(); c++) {
Photo photosVal = (Photo) photosList.elementAt(c);
out.writeBytes(18, computePhotoSize(photosVal));
encodePhoto(out, photosVal);
}
}
}

private void encodeAlbumAccess(CodedOutputStream out, AlbumAccess object)


throws IOException {
out.writeInt32(3, object.level.getNumber());
String errorMessageVal = object.errorMessage;
if (errorMessageVal != null) {
encodeString(out, 4, errorMessageVal);
}
String errorTitleVal = object.errorTitle;
if (errorTitleVal != null) {
encodeString(out, 5, errorTitleVal);
}
}

private void encodeAndroidWifi(CodedOutputStream out, AndroidWifi object)


throws IOException {
encodeString(out, 1, object.name);
encodeString(out, 2, object.ssid);
out.writeInt32(3, object.signalStrength);
}

private void encodeAnonymousChatSettings(CodedOutputStream out,


AnonymousChatSettings object) throws IOException {
Integer revealBlockSecondsVal = object.revealBlockSeconds;
if (revealBlockSecondsVal != null) {
out.writeInt32(4, revealBlockSecondsVal.intValue());
}
String bigPhotoIdVal = object.bigPhotoId;
if (bigPhotoIdVal != null) {
encodeString(out, 5, bigPhotoIdVal);
}
Integer revealBlockSecondsTotalVal = object.revealBlockSecondsTotal;
if (revealBlockSecondsTotalVal != null) {
out.writeInt32(6, revealBlockSecondsTotalVal.intValue());
}
Integer timeToVoteSecondsVal = object.timeToVoteSeconds;
if (timeToVoteSecondsVal != null) {
out.writeInt32(7, timeToVoteSecondsVal.intValue());
}
}

private void encodeAppSettings(CodedOutputStream out, AppSettings object)


throws IOException {
Integer interfaceLanguageVal = object.interfaceLanguage;
if (interfaceLanguageVal != null) {
out.writeInt32(1, interfaceLanguageVal.intValue());
}
Boolean interfaceSoundVal = object.interfaceSound;
if (interfaceSoundVal != null) {
out.writeBool(2, interfaceSoundVal.booleanValue());
}
Boolean interfaceMetricVal = object.interfaceMetric;
if (interfaceMetricVal != null) {
out.writeBool(3, interfaceMetricVal.booleanValue());
}
Boolean notifyMessagesVal = object.notifyMessages;
if (notifyMessagesVal != null) {
out.writeBool(4, notifyMessagesVal.booleanValue());
}
Boolean notifyVisitorsVal = object.notifyVisitors;
if (notifyVisitorsVal != null) {
out.writeBool(5, notifyVisitorsVal.booleanValue());
}
Boolean notifyWantYouVal = object.notifyWantYou;
if (notifyWantYouVal != null) {
out.writeBool(6, notifyWantYouVal.booleanValue());
}
Boolean notifyMutualVal = object.notifyMutual;
if (notifyMutualVal != null) {
out.writeBool(7, notifyMutualVal.booleanValue());
}
Boolean privacyShowDistanceVal = object.privacyShowDistance;
if (privacyShowDistanceVal != null) {
out.writeBool(8, privacyShowDistanceVal.booleanValue());
}
Boolean notifyAlertsVal = object.notifyAlerts;
if (notifyAlertsVal != null) {
out.writeBool(10, notifyAlertsVal.booleanValue());
}
Boolean privacyShowOnlineStatusVal = object.privacyShowOnlineStatus;
if (privacyShowOnlineStatusVal != null) {
out.writeBool(11, privacyShowOnlineStatusVal.booleanValue());
}
Boolean emailMessagesVal = object.emailMessages;
if (emailMessagesVal != null) {
out.writeBool(12, emailMessagesVal.booleanValue());
}
Boolean emailGiftsVal = object.emailGifts;
if (emailGiftsVal != null) {
out.writeBool(13, emailGiftsVal.booleanValue());
}
Boolean emailAlertsVal = object.emailAlerts;
if (emailAlertsVal != null) {
out.writeBool(14, emailAlertsVal.booleanValue());
}
Boolean emailNewsVal = object.emailNews;
if (emailNewsVal != null) {
out.writeBool(15, emailNewsVal.booleanValue());
}
Boolean emailMatchesVal = object.emailMatches;
if (emailMatchesVal != null) {
out.writeBool(16, emailMatchesVal.booleanValue());
}
Boolean emailVisitorsVal = object.emailVisitors;
if (emailVisitorsVal != null) {
out.writeBool(17, emailVisitorsVal.booleanValue());
}
Boolean notifyPhotoratingsVal = object.notifyPhotoratings;
if (notifyPhotoratingsVal != null) {
out.writeBool(18, notifyPhotoratingsVal.booleanValue());
}
Boolean emailPhotoratingsVal = object.emailPhotoratings;
if (emailPhotoratingsVal != null) {
out.writeBool(19, emailPhotoratingsVal.booleanValue());
}
Boolean notifyFavoritesVal = object.notifyFavorites;
if (notifyFavoritesVal != null) {
out.writeBool(20, notifyFavoritesVal.booleanValue());
}
Boolean emailFavoritesVal = object.emailFavorites;
if (emailFavoritesVal != null) {
out.writeBool(21, emailFavoritesVal.booleanValue());
}
Boolean verificationHideDetailsVal = object.verificationHideDetails;
if (verificationHideDetailsVal != null) {
out.writeBool(22, verificationHideDetailsVal.booleanValue());
}
Boolean verificationOnlyVerifiedMessagesVal =
object.verificationOnlyVerifiedMessages;
if (verificationOnlyVerifiedMessagesVal != null) {
out.writeBool(23, verificationOnlyVerifiedMessagesVal.booleanValue());
}
Boolean useSecureConnectionVal = object.useSecureConnection;
if (useSecureConnectionVal != null) {
out.writeBool(24, useSecureConnectionVal.booleanValue());
}
Boolean onlySocialNetworkChatVal = object.onlySocialNetworkChat;
if (onlySocialNetworkChatVal != null) {
out.writeBool(25, onlySocialNetworkChatVal.booleanValue());
}
String confirmationTextForResetNtVal = object.confirmationTextForResetNt;
if (confirmationTextForResetNtVal != null) {
encodeString(out, 26, confirmationTextForResetNtVal);
}
Boolean sharingCelebrityAndFriendsInFacebookVal =
object.sharingCelebrityAndFriendsInFacebook;
if (sharingCelebrityAndFriendsInFacebookVal != null) {
out.writeBool(27,
sharingCelebrityAndFriendsInFacebookVal.booleanValue());
}
Boolean sharingCelebrityAndFriendsInTwitterVal =
object.sharingCelebrityAndFriendsInTwitter;
if (sharingCelebrityAndFriendsInTwitterVal != null) {
out.writeBool(28,
sharingCelebrityAndFriendsInTwitterVal.booleanValue());
}
Boolean privacyShowInSearchResultsVal = object.privacyShowInSearchResults;
if (privacyShowInSearchResultsVal != null) {
out.writeBool(29, privacyShowInSearchResultsVal.booleanValue());
}
Boolean privacyShowInPublicSearchVal = object.privacyShowInPublicSearch;
if (privacyShowInPublicSearchVal != null) {
out.writeBool(30, privacyShowInPublicSearchVal.booleanValue());
}
}

private void encodeApplicationFeature(CodedOutputStream out, ApplicationFeature


object) throws IOException {
FeatureType featureVal = object.feature;
if (featureVal != null) {
out.writeInt32(1, featureVal.getNumber());
}
out.writeBool(2, object.enabled);
ActionType requiredActionVal = object.requiredAction;
if (requiredActionVal != null) {
out.writeInt32(3, requiredActionVal.getNumber());
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
encodeString(out, 4, displayMessageVal);
}
String displayTitleVal = object.displayTitle;
if (displayTitleVal != null) {
encodeString(out, 5, displayTitleVal);
}
String displayActionVal = object.displayAction;
if (displayActionVal != null) {
encodeString(out, 6, displayActionVal);
}
PaymentProductType productTypeVal = object.productType;
if (productTypeVal != null) {
out.writeInt32(7, productTypeVal.getNumber());
}
Vector displayImagesList = object.displayImages;
if (displayImagesList != null) {
for (int c = 0; c < displayImagesList.size(); c++) {
ApplicationFeaturePicture displayImagesVal =
(ApplicationFeaturePicture) displayImagesList.elementAt(c);
out.writeBytes(8,
computeApplicationFeaturePictureSize(displayImagesVal));
encodeApplicationFeaturePicture(out, displayImagesVal);
}
}
String blockReasonIdVal = object.blockReasonId;
if (blockReasonIdVal != null) {
encodeString(out, 9, blockReasonIdVal);
}
}

private void encodeApplicationFeaturePicture(CodedOutputStream out,


ApplicationFeaturePicture object) throws IOException {
encodeString(out, 1, object.displayImages);
OnlineStatus onlineStatusVal = object.onlineStatus;
if (onlineStatusVal != null) {
out.writeInt32(2, onlineStatusVal.getNumber());
}
}

private void encodeAward(CodedOutputStream out, Award object) throws


IOException {
int c;
String awardIdVal = object.awardId;
if (awardIdVal != null) {
encodeString(out, 1, awardIdVal);
}
PromoBlock promoBlockVal = object.promoBlock;
if (promoBlockVal != null) {
out.writeBytes(2, computePromoBlockSize(promoBlockVal));
encodePromoBlock(out, promoBlockVal);
}
Vector awardImagesList = object.awardImages;
if (awardImagesList != null) {
for (c = 0; c < awardImagesList.size(); c++) {
encodeString(out, 3, (String) awardImagesList.elementAt(c));
}
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
SocialSharingProvider sharingProvidersVal = (SocialSharingProvider)
sharingProvidersList.elementAt(c);
out.writeBytes(4,
computeSocialSharingProviderSize(sharingProvidersVal));
encodeSocialSharingProvider(out, sharingProvidersVal);
}
}
String thumbnailVal = object.thumbnail;
if (thumbnailVal != null) {
encodeString(out, 5, thumbnailVal);
}
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 6, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 7, descriptionVal);
}
Integer progressVal = object.progress;
if (progressVal != null) {
out.writeInt32(8, progressVal.intValue());
}
Boolean sharedVal = object.shared;
if (sharedVal != null) {
out.writeBool(9, sharedVal.booleanValue());
}
Boolean secretAwardVal = object.secretAward;
if (secretAwardVal != null) {
out.writeBool(10, secretAwardVal.booleanValue());
}
}

private void encodeButton(CodedOutputStream out, Button object) throws


IOException {
encodeString(out, 1, object.actionText);
out.writeInt32(2, object.requiredAction.getNumber());
}

private void encodeCaptcha(CodedOutputStream out, Captcha object) throws


IOException {
encodeString(out, 1, object.imageId);
}

private void encodeCellID(CodedOutputStream out, CellID object) throws


IOException {
encodeString(out, 1, object.cellId);
encodeString(out, 2, object.locationAreaId);
encodeString(out, 3, object.mnc);
encodeString(out, 4, object.mcc);
String signalStrengthVal = object.signalStrength;
if (signalStrengthVal != null) {
encodeString(out, 5, signalStrengthVal);
}
String homeCountryCodeVal = object.homeCountryCode;
if (homeCountryCodeVal != null) {
encodeString(out, 6, homeCountryCodeVal);
}
String imsiVal = object.imsi;
if (imsiVal != null) {
encodeString(out, 7, imsiVal);
}
}

private void encodeChatInstance(CodedOutputStream out, ChatInstance object)


throws IOException {
encodeString(out, 1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
out.writeInt64(2, dateModifiedVal.longValue());
}
Integer counterVal = object.counter;
if (counterVal != null) {
out.writeInt32(3, counterVal.intValue());
}
encodeString(out, 4, object.theirIconId);
encodeString(out, 5, object.myIconId);
Boolean otherAccountDeletedVal = object.otherAccountDeleted;
if (otherAccountDeletedVal != null) {
out.writeBool(6, otherAccountDeletedVal.booleanValue());
}
Vector iceBreakersList = object.iceBreakers;
if (iceBreakersList != null) {
for (int c = 0; c < iceBreakersList.size(); c++) {
encodeString(out, 7, (String) iceBreakersList.elementAt(c));
}
}
out.writeBool(8, object.isNew);
Boolean feelsLikeChattingVal = object.feelsLikeChatting;
if (feelsLikeChattingVal != null) {
out.writeBool(9, feelsLikeChattingVal.booleanValue());
}
Integer myUnreadMessagesVal = object.myUnreadMessages;
if (myUnreadMessagesVal != null) {
out.writeInt32(10, myUnreadMessagesVal.intValue());
}
Integer theirUnreadMessagesVal = object.theirUnreadMessages;
if (theirUnreadMessagesVal != null) {
out.writeInt32(11, theirUnreadMessagesVal.intValue());
}
String chatIcebreakerMainVal = object.chatIcebreakerMain;
if (chatIcebreakerMainVal != null) {
encodeString(out, 12, chatIcebreakerMainVal);
}
String chatIcebreakerExtraVal = object.chatIcebreakerExtra;
if (chatIcebreakerExtraVal != null) {
encodeString(out, 13, chatIcebreakerExtraVal);
}
String promoMessageVal = object.promoMessage;
if (promoMessageVal != null) {
encodeString(out, 14, promoMessageVal);
}
String chatIcebreakerAskVal = object.chatIcebreakerAsk;
if (chatIcebreakerAskVal != null) {
encodeString(out, 15, chatIcebreakerAskVal);
}
String chatSuggestionTitleVal = object.chatSuggestionTitle;
if (chatSuggestionTitleVal != null) {
encodeString(out, 16, chatSuggestionTitleVal);
}
String chatSuggestionPromptVal = object.chatSuggestionPrompt;
if (chatSuggestionPromptVal != null) {
encodeString(out, 17, chatSuggestionPromptVal);
}
}

private void encodeChatIsWriting(CodedOutputStream out, ChatIsWriting object)


throws IOException {
encodeString(out, 1, object.whoIsWriting);
encodeString(out, 2, object.whoIsWaiting);
}

private void encodeChatMessage(CodedOutputStream out, ChatMessage object)


throws IOException {
encodeString(out, 1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
out.writeInt64(2, dateModifiedVal.longValue());
}
encodeString(out, 3, object.fromPersonId);
encodeString(out, 4, object.toPersonId);
encodeString(out, 5, object.mssg);
out.writeInt32(6, object.messageType.getNumber());
out.writeBool(7, object.read);
String albumIdVal = object.albumId;
if (albumIdVal != null) {
encodeString(out, 8, albumIdVal);
}
Integer totalUnreadVal = object.totalUnread;
if (totalUnreadVal != null) {
out.writeInt32(9, totalUnreadVal.intValue());
}
Integer unreadFromUserVal = object.unreadFromUser;
if (unreadFromUserVal != null) {
out.writeInt32(11, unreadFromUserVal.intValue());
}
String imageUrlVal = object.imageUrl;
if (imageUrlVal != null) {
encodeString(out, 12, imageUrlVal);
}
String frameUrlVal = object.frameUrl;
if (frameUrlVal != null) {
encodeString(out, 13, frameUrlVal);
}
Boolean isAnonymousChatVal = object.isAnonymousChat;
if (isAnonymousChatVal != null) {
out.writeBool(14, isAnonymousChatVal.booleanValue());
}
Multimedia multimediaVal = object.multimedia;
if (multimediaVal != null) {
out.writeBytes(15, computeMultimediaSize(multimediaVal));
encodeMultimedia(out, multimediaVal);
}
Boolean canDeleteVal = object.canDelete;
if (canDeleteVal != null) {
out.writeBool(16, canDeleteVal.booleanValue());
}
Boolean deletedVal = object.deleted;
if (deletedVal != null) {
out.writeBool(17, deletedVal.booleanValue());
}
String sectionTitleVal = object.sectionTitle;
if (sectionTitleVal != null) {
encodeString(out, 18, sectionTitleVal);
}
ChatUserInfo fromPersonInfoVal = object.fromPersonInfo;
if (fromPersonInfoVal != null) {
out.writeBytes(19, computeChatUserInfoSize(fromPersonInfoVal));
encodeChatUserInfo(out, fromPersonInfoVal);
}
}

private void encodeChatMessageReceived(CodedOutputStream out,


ChatMessageReceived object) throws IOException {
encodeString(out, 1, object.uid);
out.writeBool(2, object.success);
String errorMessageVal = object.errorMessage;
if (errorMessageVal != null) {
encodeString(out, 3, errorMessageVal);
}
ChatMessage chatMessageVal = object.chatMessage;
if (chatMessageVal != null) {
out.writeBytes(4, computeChatMessageSize(chatMessageVal));
encodeChatMessage(out, chatMessageVal);
}
}

private void encodeChatSettings(CodedOutputStream out, ChatSettings object)


throws IOException {
String chatInstanceIdVal = object.chatInstanceId;
if (chatInstanceIdVal != null) {
encodeString(out, 1, chatInstanceIdVal);
}
MultimediaSettings multimediaSettingsVal = object.multimediaSettings;
if (multimediaSettingsVal != null) {
out.writeBytes(2,
computeMultimediaSettingsSize(multimediaSettingsVal));
encodeMultimediaSettings(out, multimediaSettingsVal);
}
}

private void encodeChatUserInfo(CodedOutputStream out, ChatUserInfo object)


throws IOException {
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 1, nameVal);
}
Integer ageVal = object.age;
if (ageVal != null) {
out.writeInt32(2, ageVal.intValue());
}
SexType genderVal = object.gender;
if (genderVal != null) {
out.writeInt32(3, genderVal.getNumber());
}
String largeImageIdVal = object.largeImageId;
if (largeImageIdVal != null) {
encodeString(out, 4, largeImageIdVal);
}
Integer interestsCountVal = object.interestsCount;
if (interestsCountVal != null) {
out.writeInt32(5, interestsCountVal.intValue());
}
String wishVal = object.wish;
if (wishVal != null) {
encodeString(out, 6, wishVal);
}
Integer numberOfPhotosVal = object.numberOfPhotos;
if (numberOfPhotosVal != null) {
out.writeInt32(7, numberOfPhotosVal.intValue());
}
Integer profileRatingVal = object.profileRating;
if (profileRatingVal != null) {
out.writeInt32(8, profileRatingVal.intValue());
}
}

private void encodeCircleDescription(CodedOutputStream out, CircleDescription


object) throws IOException {
String numberVal = object.number;
if (numberVal != null) {
encodeString(out, 1, numberVal);
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
encodeString(out, 2, displayTextVal);
}
}

private void encodeCities(CodedOutputStream out, Cities object) throws


IOException {
Vector citiesList = object.cities;
if (citiesList != null) {
for (int c = 0; c < citiesList.size(); c++) {
City citiesVal = (City) citiesList.elementAt(c);
out.writeBytes(1, computeCitySize(citiesVal));
encodeCity(out, citiesVal);
}
}
}

private void encodeCity(CodedOutputStream out, City object) throws IOException


{
out.writeInt32(1, object.id);
encodeString(out, 2, object.name);
Double longitudeVal = object.longitude;
if (longitudeVal != null) {
out.writeDouble(3, longitudeVal.doubleValue());
}
Double latitudeVal = object.latitude;
if (latitudeVal != null) {
out.writeDouble(4, latitudeVal.doubleValue());
}
}

private void encodeClientAnonymousChat(CodedOutputStream out,


ClientAnonymousChat object) throws IOException {
Boolean searchingVal = object.searching;
if (searchingVal != null) {
out.writeBool(1, searchingVal.booleanValue());
}
String chatIdVal = object.chatId;
if (chatIdVal != null) {
encodeString(out, 2, chatIdVal);
}
ClientOpenChat openChatInstanceVal = object.openChatInstance;
if (openChatInstanceVal != null) {
out.writeBytes(3, computeClientOpenChatSize(openChatInstanceVal));
encodeClientOpenChat(out, openChatInstanceVal);
}
}

private void encodeClientCaptchaAttempt(CodedOutputStream out,


ClientCaptchaAttempt object) throws IOException {
out.writeBool(1, object.success);
Captcha captchaVal = object.captcha;
if (captchaVal != null) {
out.writeBytes(2, computeCaptchaSize(captchaVal));
encodeCaptcha(out, captchaVal);
}
}

private void encodeClientChangeHost(CodedOutputStream out, ClientChangeHost


object) throws IOException {
int c;
Vector hostsList = object.hosts;
if (hostsList != null) {
for (c = 0; c < hostsList.size(); c++) {
encodeString(out, 1, (String) hostsList.elementAt(c));
}
}
Vector secureHostsList = object.secureHosts;
if (secureHostsList != null) {
for (c = 0; c < secureHostsList.size(); c++) {
encodeString(out, 2, (String) secureHostsList.elementAt(c));
}
}
Boolean mustReconnectVal = object.mustReconnect;
if (mustReconnectVal != null) {
out.writeBool(3, mustReconnectVal.booleanValue());
}
}

private void encodeClientChatMessages(CodedOutputStream out, ClientChatMessages


object) throws IOException {
ChatInstance chatInstanceVal = object.chatInstance;
out.writeBytes(1, computeChatInstanceSize(chatInstanceVal));
encodeChatInstance(out, chatInstanceVal);
Vector messagesList = object.messages;
if (messagesList != null) {
for (int c = 0; c < messagesList.size(); c++) {
ChatMessage messagesVal = (ChatMessage) messagesList.elementAt(c);
out.writeBytes(2, computeChatMessageSize(messagesVal));
encodeChatMessage(out, messagesVal);
}
}
}

private void encodeClientCommonSettings(CodedOutputStream out,


ClientCommonSettings object) throws IOException {
int c;
Integer partnerIdVal = object.partnerId;
if (partnerIdVal != null) {
out.writeInt32(1, partnerIdVal.intValue());
}
ClientChangeHost changeHostVal = object.changeHost;
if (changeHostVal != null) {
out.writeBytes(2, computeClientChangeHostSize(changeHostVal));
encodeClientChangeHost(out, changeHostVal);
}
Integer languageIdVal = object.languageId;
if (languageIdVal != null) {
out.writeInt32(3, languageIdVal.intValue());
}
Vector applicationFeaturesList = object.applicationFeatures;
if (applicationFeaturesList != null) {
for (c = 0; c < applicationFeaturesList.size(); c++) {
ApplicationFeature applicationFeaturesVal = (ApplicationFeature)
applicationFeaturesList.elementAt(c);
out.writeBytes(4,
computeApplicationFeatureSize(applicationFeaturesVal));
encodeApplicationFeature(out, applicationFeaturesVal);
}
}
Boolean phoneConfirmMissingVal = object.phoneConfirmMissing;
if (phoneConfirmMissingVal != null) {
out.writeBool(5, phoneConfirmMissingVal.booleanValue());
}
Boolean allowReviewVal = object.allowReview;
if (allowReviewVal != null) {
out.writeBool(6, allowReviewVal.booleanValue());
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
out.writeBytes(7, computeABTestingSettingsSize(aBTestingSettingsVal));
encodeABTestingSettings(out, aBTestingSettingsVal);
}
Vector externalEndpointsList = object.externalEndpoints;
if (externalEndpointsList != null) {
for (c = 0; c < externalEndpointsList.size(); c++) {
ExternalEndpoint externalEndpointsVal = (ExternalEndpoint)
externalEndpointsList.elementAt(c);
out.writeBytes(8,
computeExternalEndpointSize(externalEndpointsVal));
encodeExternalEndpoint(out, externalEndpointsVal);
}
}
}

private void encodeClientDeleteAccountInfo(CodedOutputStream out,


ClientDeleteAccountInfo object) throws IOException {
Vector deleteAccountReasonsList = object.deleteAccountReasons;
if (deleteAccountReasonsList != null) {
for (int c = 0; c < deleteAccountReasonsList.size(); c++) {
DeleteAccountReasonType deleteAccountReasonsVal =
(DeleteAccountReasonType) deleteAccountReasonsList.elementAt(c);
out.writeBytes(1,
computeDeleteAccountReasonTypeSize(deleteAccountReasonsVal));
encodeDeleteAccountReasonType(out, deleteAccountReasonsVal);
}
}
}

private void encodeClientEncounters(CodedOutputStream out, ClientEncounters


object) throws IOException {
Vector resultsList = object.results;
if (resultsList != null) {
for (int c = 0; c < resultsList.size(); c++) {
SearchResult resultsVal = (SearchResult) resultsList.elementAt(c);
out.writeBytes(1, computeSearchResultSize(resultsVal));
encodeSearchResult(out, resultsVal);
}
}
SearchType searchContextVal = object.searchContext;
if (searchContextVal != null) {
out.writeInt32(2, searchContextVal.getNumber());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(3, offsetVal.intValue());
}
}

private void encodeClientFacebookFriend(CodedOutputStream out,


ClientFacebookFriend object) throws IOException {
out.writeInt64(1, object.uid);
encodeString(out, 2, object.name);
out.writeInt32(3, object.gender.getNumber());
String picSquareVal = object.picSquare;
if (picSquareVal != null) {
encodeString(out, 4, picSquareVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 5, userIdVal);
}
}

private void encodeClientFeedbackList(CodedOutputStream out, ClientFeedbackList


object) throws IOException {
Vector feedbackKeyList = object.feedbackKey;
if (feedbackKeyList != null) {
for (int c = 0; c < feedbackKeyList.size(); c++) {
encodeString(out, 1, (String) feedbackKeyList.elementAt(c));
}
}
}

private void encodeClientFriendsImport(CodedOutputStream out,


ClientFriendsImport object) throws IOException {
String importIdVal = object.importId;
if (importIdVal != null) {
encodeString(out, 1, importIdVal);
}
Boolean completeVal = object.complete;
if (completeVal != null) {
out.writeBool(2, completeVal.booleanValue());
}
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(3, successVal.booleanValue());
}
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
PhonebookContact contactsVal = (PhonebookContact)
contactsList.elementAt(c);
out.writeBytes(4, computePhonebookContactSize(contactsVal));
encodePhonebookContact(out, contactsVal);
}
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
encodeString(out, 5, displayTextVal);
}
FormFailure formVal = object.form;
if (formVal != null) {
out.writeBytes(6, computeFormFailureSize(formVal));
encodeFormFailure(out, formVal);
}
String headerTextVal = object.headerText;
if (headerTextVal != null) {
encodeString(out, 7, headerTextVal);
}
Integer requiredContactCountVal = object.requiredContactCount;
if (requiredContactCountVal != null) {
out.writeInt32(8, requiredContactCountVal.intValue());
}
String legalInfoVal = object.legalInfo;
if (legalInfoVal != null) {
encodeString(out, 9, legalInfoVal);
}
Boolean clientShouldSendSmsVal = object.clientShouldSendSms;
if (clientShouldSendSmsVal != null) {
out.writeBool(10, clientShouldSendSmsVal.booleanValue());
}
String smsContentTextVal = object.smsContentText;
if (smsContentTextVal != null) {
encodeString(out, 11, smsContentTextVal);
}
ContactListView viewVal = object.view;
if (viewVal != null) {
out.writeInt32(12, viewVal.getNumber());
}
}

private void encodeClientGetCaptcha(CodedOutputStream out, ClientGetCaptcha


object) throws IOException {
Captcha captchaVal = object.captcha;
out.writeBytes(1, computeCaptchaSize(captchaVal));
encodeCaptcha(out, captchaVal);
}

private void encodeClientGetOwnPhotoRating(CodedOutputStream out,


ClientGetOwnPhotoRating object) throws IOException {
PhotoRating ratingVal = object.rating;
if (ratingVal != null) {
out.writeBytes(1, computePhotoRatingSize(ratingVal));
encodePhotoRating(out, ratingVal);
}
String messageVal = object.message;
if (messageVal != null) {
encodeString(out, 2, messageVal);
}
}

private void encodeClientGetPhotoRatingConfiguration(CodedOutputStream out,


ClientGetPhotoRatingConfiguration object) throws IOException {
Vector rangeList = object.range;
if (rangeList != null) {
for (int c = 0; c < rangeList.size(); c++) {
PhotoRateRange rangeVal = (PhotoRateRange) rangeList.elementAt(c);
out.writeBytes(1, computePhotoRateRangeSize(rangeVal));
encodePhotoRateRange(out, rangeVal);
}
}
RateFilter defaultFilterVal = object.defaultFilter;
if (defaultFilterVal != null) {
out.writeBytes(2, computeRateFilterSize(defaultFilterVal));
encodeRateFilter(out, defaultFilterVal);
}
}

private void encodeClientGetPhotosToRate(CodedOutputStream out,


ClientGetPhotosToRate object) throws IOException {
Vector photosList = object.photos;
if (photosList != null) {
for (int c = 0; c < photosList.size(); c++) {
PhotoToRate photosVal = (PhotoToRate) photosList.elementAt(c);
out.writeBytes(1, computePhotoToRateSize(photosVal));
encodePhotoToRate(out, photosVal);
}
}
RatingViewBlockedInfo ratingBlockVal = object.ratingBlock;
if (ratingBlockVal != null) {
out.writeBytes(2, computeRatingViewBlockedInfoSize(ratingBlockVal));
encodeRatingViewBlockedInfo(out, ratingBlockVal);
}
ApplicationFeature addFeatureVal = object.addFeature;
if (addFeatureVal != null) {
out.writeBytes(3, computeApplicationFeatureSize(addFeatureVal));
encodeApplicationFeature(out, addFeatureVal);
}
}

private void encodeClientGetRateMessage(CodedOutputStream out,


ClientGetRateMessage object) throws IOException {
String reviewTitleVal = object.reviewTitle;
if (reviewTitleVal != null) {
encodeString(out, 1, reviewTitleVal);
}
String reviewMessageVal = object.reviewMessage;
if (reviewMessageVal != null) {
encodeString(out, 2, reviewMessageVal);
}
String reviewUrlVal = object.reviewUrl;
if (reviewUrlVal != null) {
encodeString(out, 3, reviewUrlVal);
}
String reviewYesTextVal = object.reviewYesText;
if (reviewYesTextVal != null) {
encodeString(out, 4, reviewYesTextVal);
}
String reviewNoTextVal = object.reviewNoText;
if (reviewNoTextVal != null) {
encodeString(out, 5, reviewNoTextVal);
}
String reviewLaterTextVal = object.reviewLaterText;
if (reviewLaterTextVal != null) {
encodeString(out, 6, reviewLaterTextVal);
}
}

private void encodeClientImageAction(CodedOutputStream out, ClientImageAction


object) throws IOException {
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(1, successVal.booleanValue());
}
String errorMessageVal = object.errorMessage;
if (errorMessageVal != null) {
encodeString(out, 2, errorMessageVal);
}
String updateImageIdVal = object.updateImageId;
if (updateImageIdVal != null) {
encodeString(out, 3, updateImageIdVal);
}
}

private void encodeClientInterests(CodedOutputStream out, ClientInterests


object) throws IOException {
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 1, userIdVal);
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (int c = 0; c < interestsList.size(); c++) {
Interest interestsVal = (Interest) interestsList.elementAt(c);
out.writeBytes(2, computeInterestSize(interestsVal));
encodeInterest(out, interestsVal);
}
}
Integer totalVal = object.total;
if (totalVal != null) {
out.writeInt32(3, totalVal.intValue());
}
Integer groupIdVal = object.groupId;
if (groupIdVal != null) {
out.writeInt32(4, groupIdVal.intValue());
}
String summaryVal = object.summary;
if (summaryVal != null) {
encodeString(out, 5, summaryVal);
}
String searchFilterVal = object.searchFilter;
if (searchFilterVal != null) {
encodeString(out, 6, searchFilterVal);
}
InterestSortOrder orderVal = object.order;
if (orderVal != null) {
out.writeInt32(7, orderVal.getNumber());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(8, offsetVal.intValue());
}
Boolean isRejectedVal = object.isRejected;
if (isRejectedVal != null) {
out.writeBool(9, isRejectedVal.booleanValue());
}
}

private void encodeClientLoginSuccess(CodedOutputStream out, ClientLoginSuccess


object) throws IOException {
encodeString(out, 1, object.sessionId);
Person userVal = object.user;
out.writeBytes(2, computePersonSize(userVal));
encodePerson(out, userVal);
out.writeInt32(4, object.deprecatedNewPeople);
out.writeInt32(5, object.deprecatedNewMessages);
PromoBlock promoVal = object.promo;
if (promoVal != null) {
out.writeBytes(6, computePromoBlockSize(promoVal));
encodePromoBlock(out, promoVal);
}
Integer languageIdVal = object.languageId;
if (languageIdVal != null) {
out.writeInt32(8, languageIdVal.intValue());
}
Vector appFeatureList = object.appFeature;
if (appFeatureList != null) {
for (int c = 0; c < appFeatureList.size(); c++) {
ApplicationFeature appFeatureVal = (ApplicationFeature)
appFeatureList.elementAt(c);
out.writeBytes(9, computeApplicationFeatureSize(appFeatureVal));
encodeApplicationFeature(out, appFeatureVal);
}
}
String photoUploadEmailVal = object.photoUploadEmail;
if (photoUploadEmailVal != null) {
encodeString(out, 10, photoUploadEmailVal);
}
Boolean isFirstLoginVal = object.isFirstLogin;
if (isFirstLoginVal != null) {
out.writeBool(11, isFirstLoginVal.booleanValue());
}
Boolean phoneConfirmMissingVal = object.phoneConfirmMissing;
if (phoneConfirmMissingVal != null) {
out.writeBool(12, phoneConfirmMissingVal.booleanValue());
}
Integer partnerIdVal = object.partnerId;
if (partnerIdVal != null) {
out.writeInt32(13, partnerIdVal.intValue());
}
ClientChangeHost changeHostVal = object.changeHost;
if (changeHostVal != null) {
out.writeBytes(15, computeClientChangeHostSize(changeHostVal));
encodeClientChangeHost(out, changeHostVal);
}
PromoBlock continueUrlVal = object.continueUrl;
if (continueUrlVal != null) {
out.writeBytes(17, computePromoBlockSize(continueUrlVal));
encodePromoBlock(out, continueUrlVal);
}
Boolean allowReviewVal = object.allowReview;
if (allowReviewVal != null) {
out.writeBool(18, allowReviewVal.booleanValue());
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
out.writeBytes(19, computeABTestingSettingsSize(aBTestingSettingsVal));
encodeABTestingSettings(out, aBTestingSettingsVal);
}
RedirectPage redirectPageVal = object.redirectPage;
if (redirectPageVal != null) {
out.writeBytes(20, computeRedirectPageSize(redirectPageVal));
encodeRedirectPage(out, redirectPageVal);
}
}

private void encodeClientModeratedPhotos(CodedOutputStream out,


ClientModeratedPhotos object) throws IOException {
Vector albumsList = object.albums;
if (albumsList != null) {
for (int c = 0; c < albumsList.size(); c++) {
Album albumsVal = (Album) albumsList.elementAt(c);
out.writeBytes(1, computeAlbumSize(albumsVal));
encodeAlbum(out, albumsVal);
}
}
}

private void encodeClientNotification(CodedOutputStream out, ClientNotification


object) throws IOException {
encodeString(out, 1, object.id);
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 2, titleVal);
}
String messageVal = object.message;
if (messageVal != null) {
encodeString(out, 3, messageVal);
}
FeatureType displayVal = object.display;
if (displayVal != null) {
out.writeInt32(4, displayVal.getNumber());
}
FeatureType featureVal = object.feature;
if (featureVal != null) {
out.writeInt32(5, featureVal.getNumber());
}
out.writeInt32(6, object.action.getNumber());
Boolean urgentVal = object.urgent;
if (urgentVal != null) {
out.writeBool(7, urgentVal.booleanValue());
}
String actionTextVal = object.actionText;
if (actionTextVal != null) {
encodeString(out, 8, actionTextVal);
}
String transactionIdentifierVal = object.transactionIdentifier;
if (transactionIdentifierVal != null) {
encodeString(out, 9, transactionIdentifierVal);
}
String urlVal = object.url;
if (urlVal != null) {
encodeString(out, 10, urlVal);
}
Vector imageUrlsList = object.imageUrls;
if (imageUrlsList != null) {
for (int c = 0; c < imageUrlsList.size(); c++) {
encodeString(out, 11, (String) imageUrlsList.elementAt(c));
}
}
ClientNotificationType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(12, typeVal.getNumber());
}
}

private void encodeClientOpenChat(CodedOutputStream out, ClientOpenChat object)


throws IOException {
int c;
ChatInstance chatInstanceVal = object.chatInstance;
out.writeBytes(1, computeChatInstanceSize(chatInstanceVal));
encodeChatInstance(out, chatInstanceVal);
Vector messagesList = object.messages;
if (messagesList != null) {
for (c = 0; c < messagesList.size(); c++) {
Object messagesVal = messagesList.elementAt(c);
out.writeBytes(2, computeAnonymousObjectSize(messagesVal));
encodeAnonymousObject(out, messagesVal);
}
}
Integer unreadMessagesVal = object.unreadMessages;
if (unreadMessagesVal != null) {
out.writeInt32(3, unreadMessagesVal.intValue());
}
String photoIdVal = object.photoId;
if (photoIdVal != null) {
encodeString(out, 4, photoIdVal);
}
String bbmIdVal = object.bbmId;
if (bbmIdVal != null) {
encodeString(out, 5, bbmIdVal);
}
String bbPinVal = object.bbPin;
if (bbPinVal != null) {
encodeString(out, 6, bbPinVal);
}
Integer maxUnansweredMessagesVal = object.maxUnansweredMessages;
if (maxUnansweredMessagesVal != null) {
out.writeInt32(7, maxUnansweredMessagesVal.intValue());
}
ChatUserInfo userVal = object.user;
if (userVal != null) {
out.writeBytes(8, computeChatUserInfoSize(userVal));
encodeChatUserInfo(out, userVal);
}
Boolean isChatAvailableVal = object.isChatAvailable;
if (isChatAvailableVal != null) {
out.writeBool(9, isChatAvailableVal.booleanValue());
}
SocialFriendsConnectionsBlock friendsConnectionsVal =
object.friendsConnections;
if (friendsConnectionsVal != null) {
out.writeBytes(10,
computeSocialFriendsConnectionsBlockSize(friendsConnectionsVal));
encodeSocialFriendsConnectionsBlock(out, friendsConnectionsVal);
}
AnonymousChatSettings anonymousSettingsVal = object.anonymousSettings;
if (anonymousSettingsVal != null) {
out.writeBytes(11,
computeAnonymousChatSettingsSize(anonymousSettingsVal));
encodeAnonymousChatSettings(out, anonymousSettingsVal);
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (c = 0; c < interestsList.size(); c++) {
Interest interestsVal = (Interest) interestsList.elementAt(c);
out.writeBytes(12, computeInterestSize(interestsVal));
encodeInterest(out, interestsVal);
}
}
Boolean userOriginatedMessageVal = object.userOriginatedMessage;
if (userOriginatedMessageVal != null) {
out.writeBool(13, userOriginatedMessageVal.booleanValue());
}
String unavailableChatBypassTextVal = object.unavailableChatBypassText;
if (unavailableChatBypassTextVal != null) {
encodeString(out, 14, unavailableChatBypassTextVal);
}
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 15, titleVal);
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
out.writeInt32(16, interestsInCommonVal.intValue());
}
ChatSettings chatSettingsVal = object.chatSettings;
if (chatSettingsVal != null) {
out.writeBytes(17, computeChatSettingsSize(chatSettingsVal));
encodeChatSettings(out, chatSettingsVal);
}
Vector chatMessagesList = object.chatMessages;
if (chatMessagesList != null) {
for (c = 0; c < chatMessagesList.size(); c++) {
ChatMessage chatMessagesVal = (ChatMessage)
chatMessagesList.elementAt(c);
out.writeBytes(18, computeChatMessageSize(chatMessagesVal));
encodeChatMessage(out, chatMessagesVal);
}
}
}

private void encodeClientPersonProfileEditForm(CodedOutputStream out,


ClientPersonProfileEditForm object) throws IOException {
Vector optionsList = object.options;
if (optionsList != null) {
for (int c = 0; c < optionsList.size(); c++) {
ClientProfileOption optionsVal = (ClientProfileOption)
optionsList.elementAt(c);
out.writeBytes(1, computeClientProfileOptionSize(optionsVal));
encodeClientProfileOption(out, optionsVal);
}
}
}

private void encodeClientPicture(CodedOutputStream out, ClientPicture object)


throws IOException {
encodeString(out, 2, object.uid);
byte[] dataVal = object.data;
if (dataVal != null) {
out.writeBytes(3, computeByteArraySize(dataVal));
encodeByteArray(out, dataVal);
}
}

private void encodeClientProfileOption(CodedOutputStream out,


ClientProfileOption object) throws IOException {
int c;
String idVal = object.id;
if (idVal != null) {
encodeString(out, 1, idVal);
}
encodeString(out, 2, object.name);
encodeString(out, 3, object.displayValue);
InputTypes inputTypeVal = object.inputType;
if (inputTypeVal != null) {
out.writeInt32(4, inputTypeVal.getNumber());
}
Integer maxCharsVal = object.maxChars;
if (maxCharsVal != null) {
out.writeInt32(5, maxCharsVal.intValue());
}
Vector inputPartsList = object.inputParts;
if (inputPartsList != null) {
for (c = 0; c < inputPartsList.size(); c++) {
ClientProfileOption inputPartsVal = (ClientProfileOption)
inputPartsList.elementAt(c);
out.writeBytes(6, computeClientProfileOptionSize(inputPartsVal));
encodeClientProfileOption(out, inputPartsVal);
}
}
Vector optionsList = object.options;
if (optionsList != null) {
for (c = 0; c < optionsList.size(); c++) {
Tuple optionsVal = (Tuple) optionsList.elementAt(c);
out.writeBytes(7, computeTupleSize(optionsVal));
encodeTuple(out, optionsVal);
}
}
String currentOptionIdVal = object.currentOptionId;
if (currentOptionIdVal != null) {
encodeString(out, 8, currentOptionIdVal);
}
String helpTextVal = object.helpText;
if (helpTextVal != null) {
encodeString(out, 9, helpTextVal);
}
Integer minCharsVal = object.minChars;
if (minCharsVal != null) {
out.writeInt32(10, minCharsVal.intValue());
}
String ifMasterIdVal = object.ifMasterId;
if (ifMasterIdVal != null) {
encodeString(out, 11, ifMasterIdVal);
}
Vector ifMasterValueList = object.ifMasterValue;
if (ifMasterValueList != null) {
for (c = 0; c < ifMasterValueList.size(); c++) {
encodeString(out, 12, (String) ifMasterValueList.elementAt(c));
}
}
Boolean checkedVal = object.checked;
if (checkedVal != null) {
out.writeBool(13, checkedVal.booleanValue());
}
Boolean disabledVal = object.disabled;
if (disabledVal != null) {
out.writeBool(14, disabledVal.booleanValue());
}
String hintVal = object.hint;
if (hintVal != null) {
encodeString(out, 15, hintVal);
}
ProfileOptionType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(17, typeVal.getNumber());
}
Vector possibleValuesList = object.possibleValues;
if (possibleValuesList != null) {
for (c = 0; c < possibleValuesList.size(); c++) {
ClientProfileOptionValue possibleValuesVal =
(ClientProfileOptionValue) possibleValuesList.elementAt(c);
out.writeBytes(18,
computeClientProfileOptionValueSize(possibleValuesVal));
encodeClientProfileOptionValue(out, possibleValuesVal);
}
}
}

private void encodeClientProfileOptionValue(CodedOutputStream out,


ClientProfileOptionValue object) throws IOException {
String valueVal = object.value;
if (valueVal != null) {
encodeString(out, 1, valueVal);
}
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
encodeString(out, 2, displayValueVal);
}
}

private void encodeClientPurchaseReceipt(CodedOutputStream out,


ClientPurchaseReceipt object) throws IOException {
encodeString(out, 1, object.transactionIdentifier);
out.writeBool(2, object.purchaseSuccess);
ClientNotification notificationVal = object.notification;
if (notificationVal != null) {
out.writeBytes(3, computeClientNotificationSize(notificationVal));
encodeClientNotification(out, notificationVal);
}
Boolean isSynchronousVal = object.isSynchronous;
if (isSynchronousVal != null) {
out.writeBool(4, isSynchronousVal.booleanValue());
}
}

private void encodeClientRatePhotoSuccess(CodedOutputStream out,


ClientRatePhotoSuccess object) throws IOException {
String averageScoreVal = object.averageScore;
if (averageScoreVal != null) {
encodeString(out, 1, averageScoreVal);
}
RatingViewBlockedInfo ratingBlockVal = object.ratingBlock;
if (ratingBlockVal != null) {
out.writeBytes(2, computeRatingViewBlockedInfoSize(ratingBlockVal));
encodeRatingViewBlockedInfo(out, ratingBlockVal);
}
}

private void encodeClientReportTypes(CodedOutputStream out, ClientReportTypes


object) throws IOException {
Vector reportTypeList = object.reportType;
if (reportTypeList != null) {
for (int c = 0; c < reportTypeList.size(); c++) {
UserReportType reportTypeVal = (UserReportType)
reportTypeList.elementAt(c);
out.writeBytes(1, computeUserReportTypeSize(reportTypeVal));
encodeUserReportType(out, reportTypeVal);
}
}
}

private void encodeClientResetTrustedNetwork(CodedOutputStream out,


ClientResetTrustedNetwork object) throws IOException {
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(1, successVal.booleanValue());
}
}

private void encodeClientSendSlots(CodedOutputStream out, ClientSendSlots


object) throws IOException {
out.writeBool(1, object.success);
ClientNotification clientNotificationVal = object.clientNotification;
if (clientNotificationVal != null) {
out.writeBytes(2,
computeClientNotificationSize(clientNotificationVal));
encodeClientNotification(out, clientNotificationVal);
}
}

private void encodeClientSocialSharingProviders(CodedOutputStream out,


ClientSocialSharingProviders object) throws IOException {
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
SocialSharingProvider providersVal = (SocialSharingProvider)
providersList.elementAt(c);
out.writeBytes(1, computeSocialSharingProviderSize(providersVal));
encodeSocialSharingProvider(out, providersVal);
}
}
}

private void encodeClientSpotlightMetaData(CodedOutputStream out,


ClientSpotlightMetaData object) throws IOException {
byte[] spotlightServerVal = object.spotlightServer;
if (spotlightServerVal != null) {
out.writeBytes(1, computeByteArraySize(spotlightServerVal));
encodeByteArray(out, spotlightServerVal);
}
String pictureDomainVal = object.pictureDomain;
if (pictureDomainVal != null) {
encodeString(out, 2, pictureDomainVal);
}
String pictureQueryStringVal = object.pictureQueryString;
if (pictureQueryStringVal != null) {
encodeString(out, 3, pictureQueryStringVal);
}
Boolean isVerificationEnabledVal = object.isVerificationEnabled;
if (isVerificationEnabledVal != null) {
out.writeBool(4, isVerificationEnabledVal.booleanValue());
}
Boolean canViewOnlineStatusVal = object.canViewOnlineStatus;
if (canViewOnlineStatusVal != null) {
out.writeBool(5, canViewOnlineStatusVal.booleanValue());
}
Boolean isRtlVal = object.isRtl;
if (isRtlVal != null) {
out.writeBool(6, isRtlVal.booleanValue());
}
}

private void encodeClientStartup(CodedOutputStream out, ClientStartup object)


throws IOException {
int c;
Vector locationServicesList = object.locationServices;
if (locationServicesList != null) {
for (c = 0; c < locationServicesList.size(); c++) {
out.writeInt32(2, ((GeoLocationType)
locationServicesList.elementAt(c)).getNumber());
}
}
ClientUpgrade upgradeVal = object.upgrade;
if (upgradeVal != null) {
out.writeBytes(3, computeClientUpgradeSize(upgradeVal));
encodeClientUpgrade(out, upgradeVal);
}
Integer languageIdVal = object.languageId;
if (languageIdVal != null) {
out.writeInt32(4, languageIdVal.intValue());
}
Vector appFeatureList = object.appFeature;
if (appFeatureList != null) {
for (c = 0; c < appFeatureList.size(); c++) {
ApplicationFeature appFeatureVal = (ApplicationFeature)
appFeatureList.elementAt(c);
out.writeBytes(6, computeApplicationFeatureSize(appFeatureVal));
encodeApplicationFeature(out, appFeatureVal);
}
}
Boolean allowReviewVal = object.allowReview;
if (allowReviewVal != null) {
out.writeBool(7, allowReviewVal.booleanValue());
}
String welcomeMessageVal = object.welcomeMessage;
if (welcomeMessageVal != null) {
encodeString(out, 8, welcomeMessageVal);
}
String launchScreenVal = object.launchScreen;
if (launchScreenVal != null) {
encodeString(out, 9, launchScreenVal);
}
String srvVal = object.srv;
if (srvVal != null) {
encodeString(out, 11, srvVal);
}
String fullSiteUrlVal = object.fullSiteUrl;
if (fullSiteUrlVal != null) {
encodeString(out, 12, fullSiteUrlVal);
}
Boolean forbidRegisterViaSmsVal = object.forbidRegisterViaSms;
if (forbidRegisterViaSmsVal != null) {
out.writeBool(13, forbidRegisterViaSmsVal.booleanValue());
}
Boolean phoneConfirmMissingVal = object.phoneConfirmMissing;
if (phoneConfirmMissingVal != null) {
out.writeBool(14, phoneConfirmMissingVal.booleanValue());
}
Integer partnerIdVal = object.partnerId;
if (partnerIdVal != null) {
out.writeInt32(15, partnerIdVal.intValue());
}
ClientChangeHost changeHostVal = object.changeHost;
if (changeHostVal != null) {
out.writeBytes(16, computeClientChangeHostSize(changeHostVal));
encodeClientChangeHost(out, changeHostVal);
}
Boolean isPushEnabledVal = object.isPushEnabled;
if (isPushEnabledVal != null) {
out.writeBool(17, isPushEnabledVal.booleanValue());
}
StartupSettings startupSettingsVal = object.startupSettings;
if (startupSettingsVal != null) {
out.writeBytes(18, computeStartupSettingsSize(startupSettingsVal));
encodeStartupSettings(out, startupSettingsVal);
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
out.writeBytes(19, computeABTestingSettingsSize(aBTestingSettingsVal));
encodeABTestingSettings(out, aBTestingSettingsVal);
}
}

private void encodeClientUpgrade(CodedOutputStream out, ClientUpgrade object)


throws IOException {
encodeString(out, 1, object.noticeMessage);
out.writeBool(2, object.compulsory);
String urlVal = object.url;
if (urlVal != null) {
encodeString(out, 3, urlVal);
}
String noticeHeaderVal = object.noticeHeader;
if (noticeHeaderVal != null) {
encodeString(out, 4, noticeHeaderVal);
}
}

private void encodeClientUploadPhoto(CodedOutputStream out, ClientUploadPhoto


object) throws IOException {
Album albumVal = object.album;
if (albumVal != null) {
out.writeBytes(2, computeAlbumSize(albumVal));
encodeAlbum(out, albumVal);
}
String guidVal = object.guid;
if (guidVal != null) {
encodeString(out, 3, guidVal);
}
Photo photoVal = object.photo;
if (photoVal != null) {
out.writeBytes(4, computePhotoSize(photoVal));
encodePhoto(out, photoVal);
}
}
private void encodeClientUserDataIncomplete(CodedOutputStream out,
ClientUserDataIncomplete object) throws IOException {
Vector dataTypeList = object.dataType;
if (dataTypeList != null) {
for (int c = 0; c < dataTypeList.size(); c++) {
out.writeInt32(1, ((UserDataType)
dataTypeList.elementAt(c)).getNumber());
}
}
}

private void encodeClientUserList(CodedOutputStream out, ClientUserList object)


throws IOException {
Vector sectionList = object.section;
if (sectionList != null) {
for (int c = 0; c < sectionList.size(); c++) {
ListSection sectionVal = (ListSection) sectionList.elementAt(c);
out.writeBytes(1, computeListSectionSize(sectionVal));
encodeListSection(out, sectionVal);
}
}
Integer totalSectionsVal = object.totalSections;
if (totalSectionsVal != null) {
out.writeInt32(2, totalSectionsVal.intValue());
}
Integer totalCountVal = object.totalCount;
if (totalCountVal != null) {
out.writeInt32(3, totalCountVal.intValue());
}
String versionVal = object.version;
if (versionVal != null) {
encodeString(out, 4, versionVal);
}
String spotlightVersionVal = object.spotlightVersion;
if (spotlightVersionVal != null) {
encodeString(out, 5, spotlightVersionVal);
}
ApplicationFeature loadMoreFeatureVal = object.loadMoreFeature;
if (loadMoreFeatureVal != null) {
out.writeBytes(6, computeApplicationFeatureSize(loadMoreFeatureVal));
encodeApplicationFeature(out, loadMoreFeatureVal);
}
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 7, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 8, descriptionVal);
}
PromoBlock promoBlockVal = object.promoBlock;
if (promoBlockVal != null) {
out.writeBytes(9, computePromoBlockSize(promoBlockVal));
encodePromoBlock(out, promoBlockVal);
}
SlotAvailabilityInfo slotInfoVal = object.slotInfo;
if (slotInfoVal != null) {
out.writeBytes(11, computeSlotAvailabilityInfoSize(slotInfoVal));
encodeSlotAvailabilityInfo(out, slotInfoVal);
}
}

private void encodeClientUserRemoveVerify(CodedOutputStream out,


ClientUserRemoveVerify object) throws IOException {
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(1, successVal.booleanValue());
}
FormFailure formVal = object.form;
if (formVal != null) {
out.writeBytes(2, computeFormFailureSize(formVal));
encodeFormFailure(out, formVal);
}
ClientUserVerifiedGet verifiedSourceVal = object.verifiedSource;
if (verifiedSourceVal != null) {
out.writeBytes(3, computeClientUserVerifiedGetSize(verifiedSourceVal));
encodeClientUserVerifiedGet(out, verifiedSourceVal);
}
}

private void encodeClientUserVerifiedGet(CodedOutputStream out,


ClientUserVerifiedGet object) throws IOException {
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
encodeString(out, 1, displayMessageVal);
}
Vector methodsList = object.methods;
if (methodsList != null) {
for (int c = 0; c < methodsList.size(); c++) {
UserVerificationMethodStatus methodsVal =
(UserVerificationMethodStatus) methodsList.elementAt(c);
out.writeBytes(2,
computeUserVerificationMethodStatusSize(methodsVal));
encodeUserVerificationMethodStatus(out, methodsVal);
}
}
Boolean isVerifiedVal = object.isVerified;
if (isVerifiedVal != null) {
out.writeBool(3, isVerifiedVal.booleanValue());
}
}

private void encodeClientUserVerify(CodedOutputStream out, ClientUserVerify


object) throws IOException {
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(1, successVal.booleanValue());
}
FormFailure formVal = object.form;
if (formVal != null) {
out.writeBytes(2, computeFormFailureSize(formVal));
encodeFormFailure(out, formVal);
}
ClientUserVerifiedGet verifiedSourceVal = object.verifiedSource;
if (verifiedSourceVal != null) {
out.writeBytes(3, computeClientUserVerifiedGetSize(verifiedSourceVal));
encodeClientUserVerifiedGet(out, verifiedSourceVal);
}
String infoTextVal = object.infoText;
if (infoTextVal != null) {
encodeString(out, 4, infoTextVal);
}
}

private void encodeClientVoteResponse(CodedOutputStream out, ClientVoteResponse


object) throws IOException {
out.writeInt32(1, object.voteResponseType.getNumber());
encodeString(out, 2, object.message);
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 3, personIdVal);
}
String currentUserImageIdVal = object.currentUserImageId;
if (currentUserImageIdVal != null) {
encodeString(out, 4, currentUserImageIdVal);
}
String otherUserImageIdVal = object.otherUserImageId;
if (otherUserImageIdVal != null) {
encodeString(out, 5, otherUserImageIdVal);
}
}

private void encodeCometConfiguration(CodedOutputStream out, CometConfiguration


object) throws IOException {
String pathVal = object.path;
if (pathVal != null) {
encodeString(out, 1, pathVal);
}
String sequenceVal = object.sequence;
if (sequenceVal != null) {
encodeString(out, 2, sequenceVal);
}
}

private void encodeContactImportProgress(CodedOutputStream out,


ContactImportProgress object) throws IOException {
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
PhonebookContact contactsVal = (PhonebookContact)
contactsList.elementAt(c);
out.writeBytes(1, computePhonebookContactSize(contactsVal));
encodePhonebookContact(out, contactsVal);
}
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
encodeString(out, 2, displayTextVal);
}
String headerTextVal = object.headerText;
if (headerTextVal != null) {
encodeString(out, 4, headerTextVal);
}
Integer requiredContactCountVal = object.requiredContactCount;
if (requiredContactCountVal != null) {
out.writeInt32(5, requiredContactCountVal.intValue());
}
String legalInfoVal = object.legalInfo;
if (legalInfoVal != null) {
encodeString(out, 6, legalInfoVal);
}
Boolean clientShouldSendSmsVal = object.clientShouldSendSms;
if (clientShouldSendSmsVal != null) {
out.writeBool(7, clientShouldSendSmsVal.booleanValue());
}
String smsContentTextVal = object.smsContentText;
if (smsContentTextVal != null) {
encodeString(out, 8, smsContentTextVal);
}
ContactListView viewVal = object.view;
if (viewVal != null) {
out.writeInt32(9, viewVal.getNumber());
}
}

private void encodeCountry(CodedOutputStream out, Country object) throws


IOException {
out.writeInt32(1, object.id);
encodeString(out, 2, object.name);
}

private void encodeCreditsFeatureList(CodedOutputStream out, CreditsFeatureList


object) throws IOException {
Vector featuresList = object.features;
if (featuresList != null) {
for (int c = 0; c < featuresList.size(); c++) {
ApplicationFeature featuresVal = (ApplicationFeature)
featuresList.elementAt(c);
out.writeBytes(1, computeApplicationFeatureSize(featuresVal));
encodeApplicationFeature(out, featuresVal);
}
}
}

private void encodeServerGetUser(CodedOutputStream out, ServerGetUser object)


throws IOException {
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 1, userIdVal);
}
String tokenVal = object.token;
if (tokenVal != null) {
encodeString(out, 2, tokenVal);
}
UserFieldFilter userFieldFilterVal = object.userFieldFilter;
if (userFieldFilterVal != null) {
out.writeBytes(4, computeUserFieldFilterSize(userFieldFilterVal));
encodeUserFieldFilter(out, userFieldFilterVal);
}
ClientSource clientSourceVal = object.clientSource;
if (clientSourceVal != null) {
out.writeInt32(5, clientSourceVal.getNumber());
}
Boolean isPrefetchVal = object.isPrefetch;
if (isPrefetchVal != null) {
out.writeBool(6, isPrefetchVal.booleanValue());
}
ProfileVisitingSource visitingSourceVal = object.visitingSource;
if (visitingSourceVal != null) {
out.writeBytes(7, computeProfileVisitingSourceSize(visitingSourceVal));
encodeProfileVisitingSource(out, visitingSourceVal);
}

//String defaultPhotoId; // 8

private void encodeServerSaveUser(CodedOutputStream out, ServerSaveUser object)


throws IOException {
User userVal = object.user;
if (userVal != null) {
out.writeBytes(1, computeUserSize(userVal));
encodeUser(out, userVal);
}
UserFieldFilter saveFieldFilterVal = object.saveFieldFilter;
if (saveFieldFilterVal != null) {
out.writeBytes(2, computeUserFieldFilterSize(saveFieldFilterVal));
encodeUserFieldFilter(out, saveFieldFilterVal);
}
UserFieldFilter returnFieldFilterVal = object.returnFieldFilter;
if (returnFieldFilterVal != null) {
out.writeBytes(3, computeUserFieldFilterSize(returnFieldFilterVal));
encodeUserFieldFilter(out, returnFieldFilterVal);
}
}

private void encodeUser(CodedOutputStream out, User object) throws IOException


{
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 1, userIdVal);
}
ExternalProviderType userTypeVal = object.userType;
if (userTypeVal != null) {
out.writeInt32(2, userTypeVal.getNumber());
}
List<UserField> projectionVal = object.projection; // 3
if (projectionVal != null) {
throw new UnsupportedOperationException();
}
ClientSource clientSourceVal = object.clientSource; // 4
if (clientSourceVal != null) {
throw new UnsupportedOperationException();
}
UserAccessLevel accessLevelVal = object.accessLevel; // 5
if (accessLevelVal != null) {
throw new UnsupportedOperationException();
}
String emailVal = object.email; // 10
if (emailVal != null) {
throw new UnsupportedOperationException();
}
String phoneVal = object.phone; // 20
if (phoneVal != null) {
throw new UnsupportedOperationException();
}
Integer creditsVal = object.credits; // 30
if (creditsVal != null) {
throw new UnsupportedOperationException();
}
Boolean accountConfirmedVal = object.accountConfirmed; // 40
if (accountConfirmedVal != null) {
throw new UnsupportedOperationException();
}
Integer profileCompletePercentVal = object.profileCompletePercent; // 50
if (profileCompletePercentVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowEditDobVal = object.allowEditDob; // 60
if (allowEditDobVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowEditGenderVal = object.allowEditGender; // 70
if (allowEditGenderVal != null) {
throw new UnsupportedOperationException();
}
Integer genderChangeLimitVal = object.genderChangeLimit; // 71
if (genderChangeLimitVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowEditNameVal = object.allowEditName; // 80
if (allowEditNameVal != null) {
throw new UnsupportedOperationException();
}
GeoLocation locationVal = object.location; // 90
if (locationVal != null) {
throw new UnsupportedOperationException();
}
Country countryVal = object.country; // 91
if (countryVal != null) {
throw new UnsupportedOperationException();
}
Region regionVal = object.region; // 92
if (regionVal != null) {
throw new UnsupportedOperationException();
}
City cityVal = object.city; // 93
if (cityVal != null) {
out.writeBytes(93, computeCitySize(cityVal));
encodeCity(out, cityVal);
}
ClientUserVerifiedGet verifiedInformationVal =
object.verifiedInformation; // 100
if (verifiedInformationVal != null) {
throw new UnsupportedOperationException();
}
CreditsRewards creditsRewardsVal = object.creditsRewards; // 110
if (creditsRewardsVal != null) {
throw new UnsupportedOperationException();
}
String nameVal = object.name; // 200
if (nameVal != null) {
throw new UnsupportedOperationException();
}
Integer ageVal = object.age; // 210
if (ageVal != null) {
throw new UnsupportedOperationException();
}
String dobVal = object.dob; // 220
if (dobVal != null) {
throw new UnsupportedOperationException();
}
String birthdayThisYearVal = object.birthdayThisYear; // 221
if (birthdayThisYearVal != null) {
throw new UnsupportedOperationException();
}
SexType genderVal = object.gender; // 230
if (genderVal != null) {
throw new UnsupportedOperationException();
}
Boolean isNewbieVal = object.isNewbie; // 240
if (isNewbieVal != null) {
throw new UnsupportedOperationException();
}
Boolean isDeletedVal = object.isDeleted; // 250
if (isDeletedVal != null) {
throw new UnsupportedOperationException();
}
Boolean isHotVal = object.isHot; // 260
if (isHotVal != null) {
throw new UnsupportedOperationException();
}
Boolean isInvisibleVal = object.isInvisible; // 270
if (isInvisibleVal != null) {
throw new UnsupportedOperationException();
}
Boolean isUnreadVal = object.isUnread; // 280
if (isUnreadVal != null) {
throw new UnsupportedOperationException();
}
Boolean isVerifiedVal = object.isVerified; // 290
if (isVerifiedVal != null) {
out.writeBool(290, isVerifiedVal.booleanValue());
}
VerificationStatus verificationStatusVal = object.verificationStatus; //
291
if (verificationStatusVal != null) {
out.writeInt32(291, verificationStatusVal.getNumber());
}
Boolean isExtendedMatchVal = object.isExtendedMatch; // 300
if (isExtendedMatchVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasSppVal = object.hasSpp; // 301
if (hasSppVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasPaidVipVal = object.hasPaidVip; // 302
if (hasPaidVipVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasRiseupVal = object.hasRiseup; // 303
if (hasRiseupVal != null) {
throw new UnsupportedOperationException();
}
String lastRiseupTimeMessageVal = object.lastRiseupTimeMessage; // 304
if (lastRiseupTimeMessageVal != null) {
throw new UnsupportedOperationException();
}
String matchExtenderIdVal = object.matchExtenderId; // 305
if (matchExtenderIdVal != null) {
throw new UnsupportedOperationException();
}
Integer photoCountVal = object.photoCount; // 310
if (photoCountVal != null) {
throw new UnsupportedOperationException();
}
Integer videoCountVal = object.videoCount; // 311
if (videoCountVal != null) {
throw new UnsupportedOperationException();
}
ExternalProvider personalInfoSourceVal = object.personalInfoSource; // 320

if (personalInfoSourceVal != null) {
throw new UnsupportedOperationException();
}
OnlineStatus onlineStatusVal = object.onlineStatus; // 330
if (onlineStatusVal != null) {
throw new UnsupportedOperationException();
}
String onlineStatusTextVal = object.onlineStatusText; // 331
if (onlineStatusTextVal != null) {
throw new UnsupportedOperationException();
}
Long onlineLastTimestampVal = object.onlineLastTimestamp; // 332
if (onlineLastTimestampVal != null) {
throw new UnsupportedOperationException();
}
Photo profilePhotoVal = object.profilePhoto; // 340
if (profilePhotoVal != null) {
throw new UnsupportedOperationException();
}
Popularity popularityVal = object.popularity; // 350
if (popularityVal != null) {
throw new UnsupportedOperationException();
}
String wishVal = object.wish; // 360
if (wishVal != null) {
throw new UnsupportedOperationException();
}
List<Album> albumsVal = object.albums; // 370
if (albumsVal != null) {
throw new UnsupportedOperationException();
}
List<MusicService> musicServicesVal = object.musicServices; // 380
if (musicServicesVal != null) {
throw new UnsupportedOperationException();
}
Boolean musicServicesAvailableVal = object.musicServicesAvailable; // 381
if (musicServicesAvailableVal != null) {
throw new UnsupportedOperationException();
}
Integer interestsTotalVal = object.interestsTotal; // 400
if (interestsTotalVal != null) {
throw new UnsupportedOperationException();
}
Integer interestsInCommonVal = object.interestsInCommon; // 410
if (interestsInCommonVal != null) {
throw new UnsupportedOperationException();
}
List<Interest> interestsVal = object.interests; // 420
if (interestsVal != null) {
throw new UnsupportedOperationException();
}
BumpedInto bumpedIntoVal = object.bumpedInto; // 430
if (bumpedIntoVal != null) {
throw new UnsupportedOperationException();
}
List<BumpedInto> bumpedIntoPlacesVal = object.bumpedIntoPlaces; // 431
if (bumpedIntoPlacesVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasBumpedIntoPlacesVal = object.hasBumpedIntoPlaces; // 432
if (hasBumpedIntoPlacesVal != null) {
throw new UnsupportedOperationException();
}
List<Award> awardsVal = object.awards; // 440
if (awardsVal != null) {
throw new UnsupportedOperationException();
}
List<SocialNetworkInfo> socialNetworksVal = object.socialNetworks; // 460
if (socialNetworksVal != null) {
throw new UnsupportedOperationException();
}
ProfileScore profileScoreVal = object.profileScore; // 470
if (profileScoreVal != null) {
throw new UnsupportedOperationException();
}
Integer profileScoreNumericVal = object.profileScoreNumeric; // 471
if (profileScoreNumericVal != null) {
throw new UnsupportedOperationException();
}
List<Language> spokenLanguagesVal = object.spokenLanguages; // 480
if (spokenLanguagesVal != null) {
throw new UnsupportedOperationException();
}
List<ProfileField> profileFieldsVal = object.profileFields; // 490
if (profileFieldsVal != null) {
throw new UnsupportedOperationException();
}
String profileFieldsDescriptionVal = object.profileFieldsDescription; //
491
if (profileFieldsDescriptionVal != null) {
throw new UnsupportedOperationException();
}
String[] displayedAboutMeVal = object.displayedAboutMe; // 492
if (displayedAboutMeVal != null) {
throw new UnsupportedOperationException();
}
ProfileSummary profileSummaryVal = object.profileSummary; // 493
if (profileSummaryVal != null) {
throw new UnsupportedOperationException();
}
SocialFriendsConnectionsBlock friendsConnectionsVal =
object.friendsConnections; // 500
if (friendsConnectionsVal != null) {
throw new UnsupportedOperationException();
}
String friendsInCommonTextVal = object.friendsInCommonText; // 501
if (friendsInCommonTextVal != null) {
throw new UnsupportedOperationException();
}
Integer friendsInCommonVal = object.friendsInCommon; // 510
if (friendsInCommonVal != null) {
throw new UnsupportedOperationException();
}
List<CommonPlace> placesInCommonVal = object.placesInCommon; // 511
if (placesInCommonVal != null) {
throw new UnsupportedOperationException();
}
Integer placesInCommonTotalVal = object.placesInCommonTotal; // 512
if (placesInCommonTotalVal != null) {
throw new UnsupportedOperationException();
}
List<ExternalProvider> commonPlacesImportProvidersVal =
object.commonPlacesImportProviders; // 513
if (commonPlacesImportProvidersVal != null) {
throw new UnsupportedOperationException();
}
Integer distanceVal = object.distance; // 520
if (distanceVal != null) {
throw new UnsupportedOperationException();
}
String distanceLongVal = object.distanceLong; // 530
if (distanceLongVal != null) {
throw new UnsupportedOperationException();
}
String distanceShortVal = object.distanceShort; // 540
if (distanceShortVal != null) {
throw new UnsupportedOperationException();
}
VoteResultType myVoteVal = object.myVote; // 550
if (myVoteVal != null) {
throw new UnsupportedOperationException();
}
VoteResultType theirVoteVal = object.theirVote; // 560
if (theirVoteVal != null) {
throw new UnsupportedOperationException();
}
String matchMessageVal = object.matchMessage; // 570
if (matchMessageVal != null) {
throw new UnsupportedOperationException();
}
Boolean isMatchVal = object.isMatch; // 580
if (isMatchVal != null) {
throw new UnsupportedOperationException();
}
Long matchDateVal = object.matchDate; // 581
if (matchDateVal != null) {
throw new UnsupportedOperationException();
}
GameMode matchModeVal = object.matchMode; // 582
if (matchModeVal != null) {
throw new UnsupportedOperationException();
}
Boolean isCrushVal = object.isCrush; // 583
if (isCrushVal != null) {
throw new UnsupportedOperationException();
}
GameMode theirVoteModeVal = object.theirVoteMode; // 584
if (theirVoteModeVal != null) {
throw new UnsupportedOperationException();
}
RematchAction rematchActionVal = object.rematchAction; // 585
if (rematchActionVal != null) {
throw new UnsupportedOperationException();
}
Boolean isSparkVal = object.isSpark; // 586
if (isSparkVal != null) {
throw new UnsupportedOperationException();
}
GoalProgress preMatchTimeLeftVal = object.preMatchTimeLeft; // 590
if (preMatchTimeLeftVal != null) {
throw new UnsupportedOperationException();
}
GoalProgress replyTimeLeftVal = object.replyTimeLeft; // 591
if (replyTimeLeftVal != null) {
throw new UnsupportedOperationException();
}
Long connectionExpiredTimestampVal = object.connectionExpiredTimestamp; //
592
if (connectionExpiredTimestampVal != null) {
throw new UnsupportedOperationException();
}
Boolean isBlockedVal = object.isBlocked; // 600
if (isBlockedVal != null) {
throw new UnsupportedOperationException();
}
Boolean isFavouriteVal = object.isFavourite; // 610
if (isFavouriteVal != null) {
throw new UnsupportedOperationException();
}
Boolean favouritedYouVal = object.favouritedYou; // 611
if (favouritedYouVal != null) {
throw new UnsupportedOperationException();
}
Boolean isFriendVal = object.isFriend; // 620
if (isFriendVal != null) {
throw new UnsupportedOperationException();
}
Boolean isConversationVal = object.isConversation; // 630
if (isConversationVal != null) {
throw new UnsupportedOperationException();
}
Integer unreadMessagesCountVal = object.unreadMessagesCount; // 640
if (unreadMessagesCountVal != null) {
throw new UnsupportedOperationException();
}
ChatMessageType lastMessageTypeVal = object.lastMessageType; // 641
if (lastMessageTypeVal != null) {
throw new UnsupportedOperationException();
}
ChatMessage lastMessageVal = object.lastMessage; // 642
if (lastMessageVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowAddToFavouritesVal = object.allowAddToFavourites; // 650
if (allowAddToFavouritesVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowChatVal = object.allowChat; // 660
if (allowChatVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowQuickChatVal = object.allowQuickChat; // 661
if (allowQuickChatVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowChatFromMatchScreenVal = object.allowChatFromMatchScreen; //
662
if (allowChatFromMatchScreenVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowVotingVal = object.allowVoting; // 670
if (allowVotingVal != null) {
throw new UnsupportedOperationException();
}
Boolean hasMobileAppVal = object.hasMobileApp; // 680
if (hasMobileAppVal != null) {
throw new UnsupportedOperationException();
}
String voteHintVal = object.voteHint; // 681
if (voteHintVal != null) {
throw new UnsupportedOperationException();
}
PopularityLevel popularityLevelVal = object.popularityLevel; // 690
if (popularityLevelVal != null) {
throw new UnsupportedOperationException();
}
Integer popularityPnbPlaceVal = object.popularityPnbPlace; // 691
if (popularityPnbPlaceVal != null) {
throw new UnsupportedOperationException();
}
Integer popularityVisitorsTodayVal = object.popularityVisitorsToday; // 692

if (popularityVisitorsTodayVal != null) {
throw new UnsupportedOperationException();
}
Integer popularityVisitorsMonthVal = object.popularityVisitorsMonth; // 693

if (popularityVisitorsMonthVal != null) {
throw new UnsupportedOperationException();
}
String displayMessageVal = object.displayMessage; // 700
if (displayMessageVal != null) {
throw new UnsupportedOperationException();
}
String displayImageVal = object.displayImage; // 705
if (displayImageVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock voteSharingPromoVal = object.voteSharingPromo; // 710
if (voteSharingPromoVal != null) {
throw new UnsupportedOperationException();
}
List<SocialSharingProvider> voteSharingProvidersVal =
object.voteSharingProviders; // 720
if (voteSharingProvidersVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSmileVal = object.allowSmile; // 730
if (allowSmileVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSendGiftVal = object.allowSendGift; // 731
if (allowSendGiftVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowCrushVal = object.allowCrush; // 732
if (allowCrushVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSparkVal = object.allowSpark; // 733
if (allowSparkVal != null) {
throw new UnsupportedOperationException();
}
Integer secretCommentCountVal = object.secretCommentCount; // 740
if (secretCommentCountVal != null) {
throw new UnsupportedOperationException();
}
List<SecretComment> secretCommentPreviewVal =
object.secretCommentPreview; // 741
if (secretCommentPreviewVal != null) {
throw new UnsupportedOperationException();
}
Boolean isSecretCommentsEnabledVal = object.isSecretCommentsEnabled; // 742

if (isSecretCommentsEnabledVal != null) {
throw new UnsupportedOperationException();
}
ReceivedGifts receivedGiftsVal = object.receivedGifts; // 750
if (receivedGiftsVal != null) {
throw new UnsupportedOperationException();
}
Boolean isVisitorVal = object.isVisitor; // 759
if (isVisitorVal != null) {
throw new UnsupportedOperationException();
}
ClientSource cameFromVal = object.cameFrom; // 760
if (cameFromVal != null) {
throw new UnsupportedOperationException();
}
String cameFromTextVal = object.cameFromText; // 761
if (cameFromTextVal != null) {
throw new UnsupportedOperationException();
}
Boolean isInappPromoPartnerVal = object.isInappPromoPartner; // 762
if (isInappPromoPartnerVal != null) {
throw new UnsupportedOperationException();
}
PaymentProductType cameFromProductVal = object.cameFromProduct; // 763
if (cameFromProductVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock cameFromProductPromoVal = object.cameFromProductPromo; // 764
if (cameFromProductPromoVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowSharingVal = object.allowSharing; // 770
if (allowSharingVal != null) {
throw new UnsupportedOperationException();
}
Long lastActiveVal = object.lastActive; // 780
if (lastActiveVal != null) {
throw new UnsupportedOperationException();
}
String lastActiveStringVal = object.lastActiveString; // 781
if (lastActiveStringVal != null) {
throw new UnsupportedOperationException();
}
Boolean isHighlightedVal = object.isHighlighted; // 790
if (isHighlightedVal != null) {
throw new UnsupportedOperationException();
}
UnitedFriends unitedFriendsVal = object.unitedFriends; // 800
if (unitedFriendsVal != null) {
throw new UnsupportedOperationException();
}
Integer crowdSizeVal = object.crowdSize; // 801
if (crowdSizeVal != null) {
throw new UnsupportedOperationException();
}
Boolean isRemovedVal = object.isRemoved; // 810
if (isRemovedVal != null) {
throw new UnsupportedOperationException();
}
Long updateTimestampVal = object.updateTimestamp; // 820
if (updateTimestampVal != null) {
throw new UnsupportedOperationException();
}
Long sortTimestampVal = object.sortTimestamp; // 830
if (sortTimestampVal != null) {
throw new UnsupportedOperationException();
}
Long spotlightIdVal = object.spotlightId; // 840
if (spotlightIdVal != null) {
throw new UnsupportedOperationException();
}
String encryptedUserIdVal = object.encryptedUserId; // 850
if (encryptedUserIdVal != null) {
throw new UnsupportedOperationException();
}
Boolean isLockedVal = object.isLocked; // 860
if (isLockedVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock promoBlockAfterLastPhotoVal =
object.promoBlockAfterLastPhoto; // 870
if (promoBlockAfterLastPhotoVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock profileBlockerPromoVal = object.profileBlockerPromo; // 871
if (profileBlockerPromoVal != null) {
throw new UnsupportedOperationException();
}
Integer accentColorVal = object.accentColor; // 880
if (accentColorVal != null) {
throw new UnsupportedOperationException();
}
GameMode gameModeVal = object.gameMode; // 890
if (gameModeVal != null) {
throw new UnsupportedOperationException();
}
Boolean gameModeEnabledVal = object.gameModeEnabled; // 891
if (gameModeEnabledVal != null) {
throw new UnsupportedOperationException();
}
Boolean isTeleportedVal = object.isTeleported; // 900
if (isTeleportedVal != null) {
throw new UnsupportedOperationException();
}
Boolean allowWebrtcCallVal = object.allowWebrtcCall; // 910
if (allowWebrtcCallVal != null) {
throw new UnsupportedOperationException();
}
WebrtcStatus webrtcStatusVal = object.webrtcStatus; // 911
if (webrtcStatusVal != null) {
throw new UnsupportedOperationException();
}
FolderTypes originFolderVal = object.originFolder; // 920
if (originFolderVal != null) {
throw new UnsupportedOperationException();
}
UserType typeVal = object.type; // 930
if (typeVal != null) {
throw new UnsupportedOperationException();
}
QuestionsInfo questionsInfoVal = object.questionsInfo; // 1000
if (questionsInfoVal != null) {
throw new UnsupportedOperationException();
}
String vibeeNumberVal = object.vibeeNumber; // 1100
if (vibeeNumberVal != null) {
throw new UnsupportedOperationException();
}
List<UserSection> sectionsVal = object.sections; // 1110
if (sectionsVal != null) {
throw new UnsupportedOperationException();
}
Boolean isTransientVal = object.isTransient; // 1120
if (isTransientVal != null) {
throw new UnsupportedOperationException();
}
LookalikesInfo lookalikesInfoVal = object.lookalikesInfo; // 1130
if (lookalikesInfoVal != null) {
throw new UnsupportedOperationException();
}
List<Experience> jobsVal = object.jobs; // 1140
if (jobsVal != null) {
throw new UnsupportedOperationException();
}
List<Experience> educationsVal = object.educations; // 1150
if (educationsVal != null) {
throw new UnsupportedOperationException();
}
QuickChat quickChatVal = object.quickChat; // 1200
if (quickChatVal != null) {
throw new UnsupportedOperationException();
}
String experimentalWhatsMyChancesVal =
object.experimentalWhatsMyChances; // 10001
if (experimentalWhatsMyChancesVal != null) {
throw new UnsupportedOperationException();
}
Boolean experimentalIsHaloedVal = object.experimentalIsHaloed; // 10002
if (experimentalIsHaloedVal != null) {
throw new UnsupportedOperationException();
}
PromoBlock experimentalWhatsMyChancesPromoVal =
object.experimentalWhatsMyChancesPromo; // 10003
if (experimentalWhatsMyChancesPromoVal != null) {
throw new UnsupportedOperationException();
}
Boolean experimentalUserHasDoubledPictureVal =
object.experimentalUserHasDoubledPicture; // 10004
if (experimentalUserHasDoubledPictureVal != null) {
throw new UnsupportedOperationException();
}
String experimentalCrushCreditsCostVal =
object.experimentalCrushCreditsCost; // 10005
if (experimentalCrushCreditsCostVal != null) {
throw new UnsupportedOperationException();
}
}

private void encodeUserFieldFilter(CodedOutputStream out, UserFieldFilter


object) throws IOException {
int c;
List<UserField> projectionVal = object.projection;
if (projectionVal != null) {
for (c = 0; c < projectionVal.size(); c++) {
out.writeInt32(10, ((UserField)
projectionVal.get(c)).getNumber());
}
}
List<ServerGetAlbum> requestAlbumsVal = object.requestAlbums; // 20
if (requestAlbumsVal != null) {
throw new UnsupportedOperationException();
}
ServerInterestsGet requestInterestsVal = object.requestInterests; // 30
if (requestInterestsVal != null) {
out.writeBytes(30, computeServerInterestsGetSize(requestInterestsVal));
encodeServerInterestsGet(out, requestInterestsVal);
}
PhotoSizeSpec profilePhotoSizeVal = object.profilePhotoSize; // 40
if (profilePhotoSizeVal != null) {
throw new UnsupportedOperationException();
}
PhotoRequest profilePhotoRequestVal = object.profilePhotoRequest; // 41
if (profilePhotoRequestVal != null) {
throw new UnsupportedOperationException();
}
Integer commonPlaceCountVal = object.commonPlaceCount; // 50
if (commonPlaceCountVal != null) {
throw new UnsupportedOperationException();
}
List<UnitedFriendsFilter> unitedFriendsFilterVal =
object.unitedFriendsFilter; // 60
if (unitedFriendsFilterVal != null) {
throw new UnsupportedOperationException();
}
ClientSource clientSourceVal = object.clientSource;// 70
if (clientSourceVal != null) {
throw new UnsupportedOperationException();
}
List<ProfileOptionType> profileOptionTypesVal =
object.profileOptionTypes; // 80
if (profileOptionTypesVal != null) {
throw new UnsupportedOperationException();
}
ServerGetMusicServices requestMusicServicesVal =
object.requestMusicServices; // 90
if (requestMusicServicesVal != null) {
throw new UnsupportedOperationException();
}
List<UserVerificationMethodType> verificationMethodsVal =
object.verificationMethods; // 100
if (verificationMethodsVal != null) {
throw new UnsupportedOperationException();
}
GameMode gameModeVal = object.gameMode; // 110
if (gameModeVal != null) {
throw new UnsupportedOperationException();
}
QuickChatRequest quickChatRequestVal = object.quickChatRequest; // 120
if (quickChatRequestVal != null) {
throw new UnsupportedOperationException();
}
}

private void encodeCreditsRewards(CodedOutputStream out, CreditsRewards object)


throws IOException {
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 1, descriptionVal);
}
Integer currentIndexVal = object.currentIndex;
if (currentIndexVal != null) {
out.writeInt32(2, currentIndexVal.intValue());
}
Vector circlesList = object.circles;
if (circlesList != null) {
for (int c = 0; c < circlesList.size(); c++) {
CircleDescription circlesVal = (CircleDescription)
circlesList.elementAt(c);
out.writeBytes(3, computeCircleDescriptionSize(circlesVal));
encodeCircleDescription(out, circlesVal);
}
}
}

private void encodeDeleteAccountReasonType(CodedOutputStream out,


DeleteAccountReasonType object) throws IOException {
encodeString(out, 1, object.reasonCode);
encodeString(out, 2, object.text);
}

private void encodeDeleteChatMessage(CodedOutputStream out, DeleteChatMessage


object) throws IOException {
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 1, uidVal);
}
DeleteChatMessageReason deleteReasonVal = object.deleteReason;
if (deleteReasonVal != null) {
out.writeInt32(2, deleteReasonVal.getNumber());
}
}

private void encodeDeleteChatMessageResult(CodedOutputStream out,


DeleteChatMessageResult object) throws IOException {
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(1, successVal.booleanValue());
}
}

private void encodeExternalEndpoint(CodedOutputStream out, ExternalEndpoint


object) throws IOException {
ExternalEndpointType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(1, typeVal.getNumber());
}
String urlVal = object.url;
if (urlVal != null) {
encodeString(out, 2, urlVal);
}
}

private void encodeExternalProvider(CodedOutputStream out, ExternalProvider


object) throws IOException {
String idVal = object.id;
if (idVal != null) {
encodeString(out, 1, idVal);
}
String displayNameVal = object.displayName;
if (displayNameVal != null) {
encodeString(out, 2, displayNameVal);
}
String logoUrlVal = object.logoUrl;
if (logoUrlVal != null) {
encodeString(out, 3, logoUrlVal);
}
ExternalProviderType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(4, typeVal.getNumber());
}
ExternalProviderAuthData authDataVal = object.authData;
if (authDataVal != null) {
out.writeBytes(5, computeExternalProviderAuthDataSize(authDataVal));
encodeExternalProviderAuthData(out, authDataVal);
}
}

private void encodeExternalProviderAuthData(CodedOutputStream out,


ExternalProviderAuthData object) throws IOException {
ExternalProviderAuthType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(1, typeVal.getNumber());
}
String oauthUrlVal = object.oauthUrl;
if (oauthUrlVal != null) {
encodeString(out, 2, oauthUrlVal);
}
String appIdVal = object.appId;
if (appIdVal != null) {
encodeString(out, 3, appIdVal);
}
String appKeyVal = object.appKey;
if (appKeyVal != null) {
encodeString(out, 4, appKeyVal);
}
String appSecretVal = object.appSecret;
if (appSecretVal != null) {
encodeString(out, 5, appSecretVal);
}
}

private void encodeExternalProviderImportProgress(CodedOutputStream out,


ExternalProviderImportProgress object) throws IOException {
String importIdVal = object.importId;
if (importIdVal != null) {
encodeString(out, 1, importIdVal);
}
Boolean completeVal = object.complete;
if (completeVal != null) {
out.writeBool(2, completeVal.booleanValue());
}
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(3, successVal.booleanValue());
}
FormFailure formVal = object.form;
if (formVal != null) {
out.writeBytes(4, computeFormFailureSize(formVal));
encodeFormFailure(out, formVal);
}
ContactImportProgress contactImportProgressDataVal =
object.contactImportProgressData;
if (contactImportProgressDataVal != null) {
out.writeBytes(5,
computeContactImportProgressSize(contactImportProgressDataVal));
encodeContactImportProgress(out, contactImportProgressDataVal);
}
PhotoImportProgress photoImportProgressDataVal =
object.photoImportProgressData;
if (photoImportProgressDataVal != null) {
out.writeBytes(6,
computePhotoImportProgressSize(photoImportProgressDataVal));
encodePhotoImportProgress(out, photoImportProgressDataVal);
}
}

private void encodeExternalProviderImportResult(CodedOutputStream out,


ExternalProviderImportResult object) throws IOException {
Boolean successVal = object.success;
if (successVal != null) {
out.writeBool(1, successVal.booleanValue());
}
PhotoImportResult photoImportResultDataVal = object.photoImportResultData;
if (photoImportResultDataVal != null) {
out.writeBytes(2,
computePhotoImportResultSize(photoImportResultDataVal));
encodePhotoImportResult(out, photoImportResultDataVal);
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
encodeString(out, 3, displayMessageVal);
}
}

private void encodeExternalProviderSecurityCredentials(CodedOutputStream out,


ExternalProviderSecurityCredentials object) throws IOException {
String providerIdVal = object.providerId;
if (providerIdVal != null) {
encodeString(out, 1, providerIdVal);
}
ExternalProviderContext contextVal = object.context;
if (contextVal != null) {
out.writeInt32(2, contextVal.getNumber());
}
String usernameVal = object.username;
if (usernameVal != null) {
encodeString(out, 3, usernameVal);
}
String passwordVal = object.password;
if (passwordVal != null) {
encodeString(out, 4, passwordVal);
}
String oauthTokenVal = object.oauthToken;
if (oauthTokenVal != null) {
encodeString(out, 5, oauthTokenVal);
}
Boolean nativelyAuthenticatedVal = object.nativelyAuthenticated;
if (nativelyAuthenticatedVal != null) {
out.writeBool(6, nativelyAuthenticatedVal.booleanValue());
}
String redirectUriVal = object.redirectUri;
if (redirectUriVal != null) {
encodeString(out, 7, redirectUriVal);
}
}

private void encodeExternalProviders(CodedOutputStream out, ExternalProviders


object) throws IOException {
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
ExternalProvider providersVal = (ExternalProvider)
providersList.elementAt(c);
out.writeBytes(1, computeExternalProviderSize(providersVal));
encodeExternalProvider(out, providersVal);
}
}
ExternalProviderContext contextVal = object.context;
if (contextVal != null) {
out.writeInt32(2, contextVal.getNumber());
}
String displayStringVal = object.displayString;
if (displayStringVal != null) {
encodeString(out, 3, displayStringVal);
}
String headingStringVal = object.headingString;
if (headingStringVal != null) {
encodeString(out, 4, headingStringVal);
}
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 5, titleVal);
}
ImportGoalProgress importGoalProgressVal = object.importGoalProgress;
if (importGoalProgressVal != null) {
out.writeBytes(6,
computeImportGoalProgressSize(importGoalProgressVal));
encodeImportGoalProgress(out, importGoalProgressVal);
}
}

private void encodeExternalStatsProvider(CodedOutputStream out,


ExternalStatsProvider object) throws IOException {
ExternalStatsProviderType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(1, typeVal.getNumber());
}
String urlVal = object.url;
if (urlVal != null) {
encodeString(out, 2, urlVal);
}
Integer maximumPoolSizeVal = object.maximumPoolSize;
if (maximumPoolSizeVal != null) {
out.writeInt32(3, maximumPoolSizeVal.intValue());
}
Integer maximumTimeoutVal = object.maximumTimeout;
if (maximumTimeoutVal != null) {
out.writeInt32(4, maximumTimeoutVal.intValue());
}
}
private void encodeFeaturePrePurchaseInfo(CodedOutputStream out,
FeaturePrePurchaseInfo object) throws IOException {
FeatureType featureVal = object.feature;
if (featureVal != null) {
out.writeInt32(1, featureVal.getNumber());
}
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 2, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 3, descriptionVal);
}
String actionVal = object.action;
if (actionVal != null) {
encodeString(out, 4, actionVal);
}
String costVal = object.cost;
if (costVal != null) {
encodeString(out, 5, costVal);
}
Album albumVal = object.album;
if (albumVal != null) {
out.writeBytes(6, computeAlbumSize(albumVal));
encodeAlbum(out, albumVal);
}
String headerVal = object.header;
if (headerVal != null) {
encodeString(out, 7, headerVal);
}
ApplicationFeature applicationFeatureVal = object.applicationFeature;
if (applicationFeatureVal != null) {
out.writeBytes(8,
computeApplicationFeatureSize(applicationFeatureVal));
encodeApplicationFeature(out, applicationFeatureVal);
}
}

private void encodeFeatureProductList(CodedOutputStream out, FeatureProductList


object) throws IOException {
int c;
out.writeInt32(1, object.feature.getNumber());
Vector productsList = object.products;
if (productsList != null) {
for (c = 0; c < productsList.size(); c++) {
Product productsVal = (Product) productsList.elementAt(c);
out.writeBytes(2, computeProductSize(productsVal));
encodeProduct(out, productsVal);
}
}
Vector providerNameList = object.providerName;
if (providerNameList != null) {
for (c = 0; c < providerNameList.size(); c++) {
ProviderName providerNameVal = (ProviderName)
providerNameList.elementAt(c);
out.writeBytes(3, computeProviderNameSize(providerNameVal));
encodeProviderName(out, providerNameVal);
}
}
String serviceTitleVal = object.serviceTitle;
if (serviceTitleVal != null) {
encodeString(out, 4, serviceTitleVal);
}
String serviceActionVal = object.serviceAction;
if (serviceActionVal != null) {
encodeString(out, 5, serviceActionVal);
}
String providerSelectionTitleVal = object.providerSelectionTitle;
if (providerSelectionTitleVal != null) {
encodeString(out, 6, providerSelectionTitleVal);
}
String productSelectionTitleVal = object.productSelectionTitle;
if (productSelectionTitleVal != null) {
encodeString(out, 7, productSelectionTitleVal);
}
String featureDescriptionVal = object.featureDescription;
if (featureDescriptionVal != null) {
encodeString(out, 8, featureDescriptionVal);
}
String autoTopUpTextVal = object.autoTopUpText;
if (autoTopUpTextVal != null) {
encodeString(out, 9, autoTopUpTextVal);
}
}

private void encodeFieldError(CodedOutputStream out, FieldError object) throws


IOException {
encodeString(out, 1, object.fieldName);
encodeString(out, 2, object.error);
}

private void encodeFinishContactImport(CodedOutputStream out,


FinishContactImport object) throws IOException {
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
PhonebookContact contactsVal = (PhonebookContact)
contactsList.elementAt(c);
out.writeBytes(1, computePhonebookContactSize(contactsVal));
encodePhonebookContact(out, contactsVal);
}
}
Boolean smsAlreadySentVal = object.smsAlreadySent;
if (smsAlreadySentVal != null) {
out.writeBool(2, smsAlreadySentVal.booleanValue());
}
String facebookRequestIdVal = object.facebookRequestId;
if (facebookRequestIdVal != null) {
encodeString(out, 3, facebookRequestIdVal);
}
}

private void encodeFinishPhotoImport(CodedOutputStream out, FinishPhotoImport


object) throws IOException {
Vector photosList = object.photos;
if (photosList != null) {
for (int c = 0; c < photosList.size(); c++) {
Photo photosVal = (Photo) photosList.elementAt(c);
out.writeBytes(1, computePhotoSize(photosVal));
encodePhoto(out, photosVal);
}
}
String photoToReplaceVal = object.photoToReplace;
if (photoToReplaceVal != null) {
encodeString(out, 2, photoToReplaceVal);
}
}

private void encodeFolderRequest(CodedOutputStream out, FolderRequest object)


throws IOException {
int c;
Vector folderIdList = object.folderId;
if (folderIdList != null) {
for (c = 0; c < folderIdList.size(); c++) {
out.writeInt32(1, ((FolderTypes)
folderIdList.elementAt(c)).getNumber());
}
}
Vector personNoticeTypeList = object.personNoticeType;
if (personNoticeTypeList != null) {
for (c = 0; c < personNoticeTypeList.size(); c++) {
out.writeInt32(2, ((PersonNoticeType)
personNoticeTypeList.elementAt(c)).getNumber());
}
}
}

private void encodeFormFailure(CodedOutputStream out, FormFailure object)


throws IOException {
int c;
Vector errorsList = object.errors;
if (errorsList != null) {
for (c = 0; c < errorsList.size(); c++) {
FieldError errorsVal = (FieldError) errorsList.elementAt(c);
out.writeBytes(1, computeFieldErrorSize(errorsVal));
encodeFieldError(out, errorsVal);
}
}
ServerErrorMessage failureVal = object.failure;
if (failureVal != null) {
out.writeBytes(2, computeServerErrorMessageSize(failureVal));
encodeServerErrorMessage(out, failureVal);
}
String captchaUrlVal = object.captchaUrl;
if (captchaUrlVal != null) {
encodeString(out, 3, captchaUrlVal);
}
Hashtable formDataVal = object.formData;
if (formDataVal != null) {
out.writeBytes(4, computeHashtableSize(formDataVal));
encodeHashtable(out, formDataVal);
}
Vector strFormDataList = object.strFormData;
if (strFormDataList != null) {
for (c = 0; c < strFormDataList.size(); c++) {
FormField strFormDataVal = (FormField)
strFormDataList.elementAt(c);
out.writeBytes(5, computeFormFieldSize(strFormDataVal));
encodeFormField(out, strFormDataVal);
}
}
}

private void encodeFormField(CodedOutputStream out, FormField object) throws


IOException {
String keyVal = object.key;
if (keyVal != null) {
encodeString(out, 1, keyVal);
}
String valueVal = object.value;
if (valueVal != null) {
encodeString(out, 2, valueVal);
}
}

private void encodeFriendOrCelebritySharingStats(CodedOutputStream out,


FriendOrCelebritySharingStats object) throws IOException {
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 1, personIdVal);
}
Boolean isCelebrityVal = object.isCelebrity;
if (isCelebrityVal != null) {
out.writeBool(2, isCelebrityVal.booleanValue());
}
Boolean isHiddenVal = object.isHidden;
if (isHiddenVal != null) {
out.writeBool(3, isHiddenVal.booleanValue());
}
ExternalProviderType providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(4, providerIdVal.getNumber());
}
CelebrityFriendSharing actionVal = object.action;
if (actionVal != null) {
out.writeInt32(5, actionVal.getNumber());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(6, contextVal.getNumber());
}
}

private void encodeFriendsImportAuthData(CodedOutputStream out,


FriendsImportAuthData object) throws IOException {
FriendsImportAuthType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(1, typeVal.getNumber());
}
String oauthUrlVal = object.oauthUrl;
if (oauthUrlVal != null) {
encodeString(out, 2, oauthUrlVal);
}
}
private void encodeFriendsImportProvider(CodedOutputStream out,
FriendsImportProvider object) throws IOException {
String idVal = object.id;
if (idVal != null) {
encodeString(out, 1, idVal);
}
String displayNameVal = object.displayName;
if (displayNameVal != null) {
encodeString(out, 2, displayNameVal);
}
FriendsImportAuthData authDataVal = object.authData;
if (authDataVal != null) {
out.writeBytes(3, computeFriendsImportAuthDataSize(authDataVal));
encodeFriendsImportAuthData(out, authDataVal);
}
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 4, nameVal);
}
String logoUrlVal = object.logoUrl;
if (logoUrlVal != null) {
encodeString(out, 5, logoUrlVal);
}
}

private void encodeFriendsImportSecurityCredentials(CodedOutputStream out,


FriendsImportSecurityCredentials object) throws IOException {
String usernameVal = object.username;
if (usernameVal != null) {
encodeString(out, 1, usernameVal);
}
String passwordVal = object.password;
if (passwordVal != null) {
encodeString(out, 2, passwordVal);
}
String oauthTokenVal = object.oauthToken;
if (oauthTokenVal != null) {
encodeString(out, 3, oauthTokenVal);
}
}

private void encodeGeoLocation(CodedOutputStream out, GeoLocation object)


throws IOException {
encodeString(out, 1, object.source);
Float longitudeVal = object.longitude;
if (longitudeVal != null) {
out.writeFloat(2, longitudeVal.floatValue());
}
Float latitudeVal = object.latitude;
if (latitudeVal != null) {
out.writeFloat(3, latitudeVal.floatValue());
}
Double longitudePreciseVal = object.longitudePrecise;
if (longitudePreciseVal != null) {
out.writeDouble(4, longitudePreciseVal.doubleValue());
}
Double latitudePreciseVal = object.latitudePrecise;
if (latitudePreciseVal != null) {
out.writeDouble(5, latitudePreciseVal.doubleValue());
}
Boolean isAgpsVal = object.isAgps;
if (isAgpsVal != null) {
out.writeBool(6, isAgpsVal.booleanValue());
}
String uuidVal = object.uuid;
if (uuidVal != null) {
encodeString(out, 7, uuidVal);
}
Integer accuracyVal = object.accuracy;
if (accuracyVal != null) {
out.writeInt32(8, accuracyVal.intValue());
}
}

private void encodeGroup(CodedOutputStream out, Group object) throws


IOException {
out.writeInt32(1, object.groupId);
encodeString(out, 2, object.name);
}

private void encodeImportGoalProgress(CodedOutputStream out, ImportGoalProgress


object) throws IOException {
Integer numberRequiredVal = object.numberRequired;
if (numberRequiredVal != null) {
out.writeInt32(1, numberRequiredVal.intValue());
}
Integer numberAlreadyImportedVal = object.numberAlreadyImported;
if (numberAlreadyImportedVal != null) {
out.writeInt32(2, numberAlreadyImportedVal.intValue());
}
String numberAlreadyImportedStringVal = object.numberAlreadyImportedString;
if (numberAlreadyImportedStringVal != null) {
encodeString(out, 3, numberAlreadyImportedStringVal);
}
Vector progressStopsList = object.progressStops;
if (progressStopsList != null) {
for (int c = 0; c < progressStopsList.size(); c++) {
encodeString(out, 4, (String) progressStopsList.elementAt(c));
}
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 5, descriptionVal);
}
}

private void encodeInterest(CodedOutputStream out, Interest object) throws


IOException {
Integer interestIdVal = object.interestId;
if (interestIdVal != null) {
out.writeInt32(1, interestIdVal.intValue());
}
encodeString(out, 2, object.name);
Integer groupIdVal = object.groupId;
if (groupIdVal != null) {
out.writeInt32(3, groupIdVal.intValue());
}
Boolean isMatchedVal = object.isMatched;
if (isMatchedVal != null) {
out.writeBool(4, isMatchedVal.booleanValue());
}
Boolean isHiddenVal = object.isHidden;
if (isHiddenVal != null) {
out.writeBool(5, isHiddenVal.booleanValue());
}
Boolean isRejectedVal = object.isRejected;
if (isRejectedVal != null) {
out.writeBool(6, isRejectedVal.booleanValue());
}
}

private void encodeInterestsGroups(CodedOutputStream out, InterestsGroups


object) throws IOException {
Vector groupsList = object.groups;
if (groupsList != null) {
for (int c = 0; c < groupsList.size(); c++) {
Group groupsVal = (Group) groupsList.elementAt(c);
out.writeBytes(1, computeGroupSize(groupsVal));
encodeGroup(out, groupsVal);
}
}
}

private void encodeInterestsUpdate(CodedOutputStream out, InterestsUpdate


object) throws IOException {
int c;
Vector addList = object.add;
if (addList != null) {
for (c = 0; c < addList.size(); c++) {
out.writeInt32(1, ((Integer) addList.elementAt(c)).intValue());
}
}
Vector removeList = object.remove;
if (removeList != null) {
for (c = 0; c < removeList.size(); c++) {
out.writeInt32(2, ((Integer) removeList.elementAt(c)).intValue());
}
}
InterestAddSource sourceVal = object.source;
if (sourceVal != null) {
out.writeInt32(3, sourceVal.getNumber());
}
}

private void encodeLanguage(CodedOutputStream out, Language object) throws


IOException {
out.writeInt32(1, object.uid);
encodeString(out, 2, object.name);
LanguageLevel levelVal = object.level;
if (levelVal != null) {
out.writeInt32(3, levelVal.getNumber());
}
}

private void encodeListSection(CodedOutputStream out, ListSection object)


throws IOException {
int c;
encodeString(out, 1, object.sectionId);
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 2, nameVal);
}
Integer totalCountVal = object.totalCount;
if (totalCountVal != null) {
out.writeInt32(3, totalCountVal.intValue());
}
Vector userList = object.user;
if (userList != null) {
for (c = 0; c < userList.size(); c++) {
SectionUser userVal = (SectionUser) userList.elementAt(c);
out.writeBytes(4, computeSectionUserSize(userVal));
encodeSectionUser(out, userVal);
}
}
Boolean lastBlockVal = object.lastBlock;
if (lastBlockVal != null) {
out.writeBool(5, lastBlockVal.booleanValue());
}
ApplicationFeature addFeatureVal = object.addFeature;
if (addFeatureVal != null) {
out.writeBytes(6, computeApplicationFeatureSize(addFeatureVal));
encodeApplicationFeature(out, addFeatureVal);
}
ApplicationFeature sectionFeatureVal = object.sectionFeature;
if (sectionFeatureVal != null) {
out.writeBytes(7, computeApplicationFeatureSize(sectionFeatureVal));
encodeApplicationFeature(out, sectionFeatureVal);
}
ApplicationFeature userFeatureVal = object.userFeature;
if (userFeatureVal != null) {
out.writeBytes(8, computeApplicationFeatureSize(userFeatureVal));
encodeApplicationFeature(out, userFeatureVal);
}
Vector allowedActionsList = object.allowedActions;
if (allowedActionsList != null) {
for (c = 0; c < allowedActionsList.size(); c++) {
out.writeInt32(9, ((SectionActionType)
allowedActionsList.elementAt(c)).getNumber());
}
}
}

private void encodeMetaTag(CodedOutputStream out, MetaTag object) throws


IOException {
String propertyVal = object.property;
if (propertyVal != null) {
encodeString(out, 1, propertyVal);
}
String contentVal = object.content;
if (contentVal != null) {
encodeString(out, 2, contentVal);
}
}

private void encodeModifiedObject(CodedOutputStream out, ModifiedObject object)


throws IOException {
encodeString(out, 1, object.uid);
out.writeInt64(2, object.dateModified);
}

private void encodeMultimedia(CodedOutputStream out, Multimedia object) throws


IOException {
out.writeInt32(1, object.format.getNumber());
MultimediaVisibility visibilityVal = object.visibility;
out.writeBytes(2, computeMultimediaVisibilitySize(visibilityVal));
encodeMultimediaVisibility(out, visibilityVal);
Object dataVal = object.data;
if (dataVal != null) {
out.writeBytes(3, computeByteArraySize(dataVal));
encodeByteArray(out, dataVal);
}
String idVal = object.id;
if (idVal != null) {
encodeString(out, 4, idVal);
}
String urlVal = object.url;
if (urlVal != null) {
encodeString(out, 5, urlVal);
}
Photo photoVal = object.photo;
if (photoVal != null) {
out.writeBytes(6, computePhotoSize(photoVal));
encodePhoto(out, photoVal);
}
}

private void encodeMultimediaConfig(CodedOutputStream out, MultimediaConfig


object) throws IOException {
Vector visibilityList = object.visibility;
if (visibilityList != null) {
for (int c = 0; c < visibilityList.size(); c++) {
MultimediaVisibility visibilityVal = (MultimediaVisibility)
visibilityList.elementAt(c);
out.writeBytes(1, computeMultimediaVisibilitySize(visibilityVal));
encodeMultimediaVisibility(out, visibilityVal);
}
}
}

private void encodeMultimediaSettings(CodedOutputStream out, MultimediaSettings


object) throws IOException {
ApplicationFeature featureVal = object.feature;
if (featureVal != null) {
out.writeBytes(1, computeApplicationFeatureSize(featureVal));
encodeApplicationFeature(out, featureVal);
}
MultimediaConfig multimediaConfigVal = object.multimediaConfig;
if (multimediaConfigVal != null) {
out.writeBytes(2, computeMultimediaConfigSize(multimediaConfigVal));
encodeMultimediaConfig(out, multimediaConfigVal);
}
}

private void encodeMultimediaVisibility(CodedOutputStream out,


MultimediaVisibility object) throws IOException {
out.writeInt32(1, object.visibilityType.getNumber());
Integer secondsVal = object.seconds;
if (secondsVal != null) {
out.writeInt32(2, secondsVal.intValue());
}
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
encodeString(out, 3, displayValueVal);
}
}

private void encodeNoMoreSearchResults(CodedOutputStream out,


NoMoreSearchResults object) throws IOException {
out.writeInt32(1, object.searchContext.getNumber());
Boolean canFilterExpandVal = object.canFilterExpand;
if (canFilterExpandVal != null) {
out.writeBool(2, canFilterExpandVal.booleanValue());
}
}

private void encodeOfferwallStats(CodedOutputStream out, OfferwallStats object)


throws IOException {
ClientSource sourceScreenVal = object.sourceScreen;
if (sourceScreenVal != null) {
out.writeInt32(2, sourceScreenVal.getNumber());
}
}

private void encodePaymentProviderProduct(CodedOutputStream out,


PaymentProviderProduct object) throws IOException {
out.writeInt32(1, object.provider.getNumber());
encodeString(out, 2, object.displayPrice);
String externalIdVal = object.externalId;
if (externalIdVal != null) {
encodeString(out, 3, externalIdVal);
}
String displayNameVal = object.displayName;
if (displayNameVal != null) {
encodeString(out, 4, displayNameVal);
}
Boolean isTopUpPossibleVal = object.isTopUpPossible;
if (isTopUpPossibleVal != null) {
out.writeBool(5, isTopUpPossibleVal.booleanValue());
}
Boolean topUpDefaultStateVal = object.topUpDefaultState;
if (topUpDefaultStateVal != null) {
out.writeBool(6, topUpDefaultStateVal.booleanValue());
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(7, providerIdVal.intValue());
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 8, descriptionVal);
}
String productImageUrlVal = object.productImageUrl;
if (productImageUrlVal != null) {
encodeString(out, 9, productImageUrlVal);
}
ProductScreenMode screenModeVal = object.screenMode;
if (screenModeVal != null) {
out.writeInt32(10, screenModeVal.getNumber());
}
}

private void encodePaymentSettings(CodedOutputStream out, PaymentSettings


object) throws IOException {
encodeString(out, 1, object.creditBalance);
out.writeBool(2, object.autoTopup);
out.writeBool(3, object.hasStored);
String storedNameVal = object.storedName;
if (storedNameVal != null) {
encodeString(out, 4, storedNameVal);
}
String storedDescriptionVal = object.storedDescription;
if (storedDescriptionVal != null) {
encodeString(out, 5, storedDescriptionVal);
}
out.writeBool(6, object.hasSpp);
String settingsDescriptionVal = object.settingsDescription;
if (settingsDescriptionVal != null) {
encodeString(out, 7, settingsDescriptionVal);
}
String storedIdVal = object.storedId;
if (storedIdVal != null) {
encodeString(out, 8, storedIdVal);
}
String promoCreditsVal = object.promoCredits;
if (promoCreditsVal != null) {
encodeString(out, 9, promoCreditsVal);
}
String promoHasAutoTopupVal = object.promoHasAutoTopup;
if (promoHasAutoTopupVal != null) {
encodeString(out, 10, promoHasAutoTopupVal);
}
String promoNoStoredCardVal = object.promoNoStoredCard;
if (promoNoStoredCardVal != null) {
encodeString(out, 11, promoNoStoredCardVal);
}
String creditsTermsVal = object.creditsTerms;
if (creditsTermsVal != null) {
encodeString(out, 12, creditsTermsVal);
}
String promoHasNoAutoTopupVal = object.promoHasNoAutoTopup;
if (promoHasNoAutoTopupVal != null) {
encodeString(out, 13, promoHasNoAutoTopupVal);
}
String subscriptionInfoVal = object.subscriptionInfo;
if (subscriptionInfoVal != null) {
encodeString(out, 14, subscriptionInfoVal);
}
String promoSwitchHasAutoTopupVal = object.promoSwitchHasAutoTopup;
if (promoSwitchHasAutoTopupVal != null) {
encodeString(out, 15, promoSwitchHasAutoTopupVal);
}
String promoSwitchHasNoAutoTopupVal = object.promoSwitchHasNoAutoTopup;
if (promoSwitchHasNoAutoTopupVal != null) {
encodeString(out, 16, promoSwitchHasNoAutoTopupVal);
}
Boolean isSppCancelableVal = object.isSppCancelable;
if (isSppCancelableVal != null) {
out.writeBool(17, isSppCancelableVal.booleanValue());
}
UnsubscribeInfo sppUnsubscribeVal = object.sppUnsubscribe;
if (sppUnsubscribeVal != null) {
out.writeBytes(18, computeUnsubscribeInfoSize(sppUnsubscribeVal));
encodeUnsubscribeInfo(out, sppUnsubscribeVal);
}
}

private void encodePerson(CodedOutputStream out, Person object) throws


IOException {
encodeString(out, 1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
out.writeInt64(2, dateModifiedVal.longValue());
}
encodeString(out, 3, object.name);
out.writeInt32(4, object.gender.getNumber());
out.writeInt32(5, object.age);
encodeString(out, 6, object.dob);
encodeString(out, 7, object.wish);
out.writeInt32(8, object.location);
encodeString(out, 9, object.previewImageId);
out.writeInt32(10, object.numberOfPhotos);
encodeString(out, 11, object.personalAlbumId);
out.writeBool(12, object.deleted);
out.writeBool(13, object.pending);
out.writeBool(14, object.visible);
out.writeBool(15, object.friend);
out.writeBool(16, object.favourite);
out.writeBool(17, object.blocked);
out.writeBool(18, object.profileVisited);
Boolean verifiedUserVal = object.verifiedUser;
if (verifiedUserVal != null) {
out.writeBool(19, verifiedUserVal.booleanValue());
}
Boolean celebrityVal = object.celebrity;
if (celebrityVal != null) {
out.writeBool(20, celebrityVal.booleanValue());
}
Boolean matchVal = object.match;
if (matchVal != null) {
out.writeBool(21, matchVal.booleanValue());
}
}

private void encodePersonNotice(CodedOutputStream out, PersonNotice object)


throws IOException {
out.writeInt32(1, object.type.getNumber());
FolderTypes folderVal = object.folder;
if (folderVal != null) {
out.writeInt32(2, folderVal.getNumber());
}
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
encodeString(out, 3, displayValueVal);
}
}

private void encodePersonProfile(CodedOutputStream out, PersonProfile object)


throws IOException {
int c;
encodeString(out, 1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
out.writeInt64(2, dateModifiedVal.longValue());
}
String profileImageIdVal = object.profileImageId;
if (profileImageIdVal != null) {
encodeString(out, 3, profileImageIdVal);
}
Vector albumIdsList = object.albumIds;
if (albumIdsList != null) {
for (c = 0; c < albumIdsList.size(); c++) {
encodeString(out, 4, (String) albumIdsList.elementAt(c));
}
}
out.writeInt32(5, object.percentageComplete);
Hashtable personalInfoVal = object.personalInfo;
out.writeBytes(6, computeHashtableSize(personalInfoVal));
encodeHashtable(out, personalInfoVal);
Hashtable languagesVal = object.languages;
out.writeBytes(7, computeHashtableSize(languagesVal));
encodeHashtable(out, languagesVal);
out.writeInt32(8, object.theirVoteOnYou.getNumber());
out.writeInt32(9, object.voteResult.getNumber());
Boolean allowEditGenderVal = object.allowEditGender;
if (allowEditGenderVal != null) {
out.writeBool(10, allowEditGenderVal.booleanValue());
}
String largeImageIdVal = object.largeImageId;
if (largeImageIdVal != null) {
encodeString(out, 11, largeImageIdVal);
}
Boolean votingEnabledVal = object.votingEnabled;
if (votingEnabledVal != null) {
out.writeBool(12, votingEnabledVal.booleanValue());
}
Vector profileOptionsList = object.profileOptions;
if (profileOptionsList != null) {
for (c = 0; c < profileOptionsList.size(); c++) {
ClientProfileOption profileOptionsVal = (ClientProfileOption)
profileOptionsList.elementAt(c);
out.writeBytes(13,
computeClientProfileOptionSize(profileOptionsVal));
encodeClientProfileOption(out, profileOptionsVal);
}
}
String emailVal = object.email;
if (emailVal != null) {
encodeString(out, 14, emailVal);
}
Boolean accountConfirmedVal = object.accountConfirmed;
if (accountConfirmedVal != null) {
out.writeBool(15, accountConfirmedVal.booleanValue());
}
String phoneVal = object.phone;
if (phoneVal != null) {
encodeString(out, 16, phoneVal);
}
Boolean showCommonInterestsVal = object.showCommonInterests;
if (showCommonInterestsVal != null) {
out.writeBool(17, showCommonInterestsVal.booleanValue());
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (c = 0; c < interestsList.size(); c++) {
Interest interestsVal = (Interest) interestsList.elementAt(c);
out.writeBytes(18, computeInterestSize(interestsVal));
encodeInterest(out, interestsVal);
}
}
String interestsMessageVal = object.interestsMessage;
if (interestsMessageVal != null) {
encodeString(out, 19, interestsMessageVal);
}
Boolean addToFavouritesAllowedVal = object.addToFavouritesAllowed;
if (addToFavouritesAllowedVal != null) {
out.writeBool(20, addToFavouritesAllowedVal.booleanValue());
}
Boolean chatAllowedVal = object.chatAllowed;
if (chatAllowedVal != null) {
out.writeBool(21, chatAllowedVal.booleanValue());
}
String commonInterestMessageVal = object.commonInterestMessage;
if (commonInterestMessageVal != null) {
encodeString(out, 22, commonInterestMessageVal);
}
String creditsVal = object.credits;
if (creditsVal != null) {
encodeString(out, 23, creditsVal);
}
ClientUserVerifiedGet verifiedInformationVal = object.verifiedInformation;
if (verifiedInformationVal != null) {
out.writeBytes(24,
computeClientUserVerifiedGetSize(verifiedInformationVal));
encodeClientUserVerifiedGet(out, verifiedInformationVal);
}
Boolean allowEditDobVal = object.allowEditDob;
if (allowEditDobVal != null) {
out.writeBool(25, allowEditDobVal.booleanValue());
}
SocialFriendsConnectionsBlock friendsConnectionsVal =
object.friendsConnections;
if (friendsConnectionsVal != null) {
out.writeBytes(26,
computeSocialFriendsConnectionsBlockSize(friendsConnectionsVal));
encodeSocialFriendsConnectionsBlock(out, friendsConnectionsVal);
}
String thingsInCommonTitleVal = object.thingsInCommonTitle;
if (thingsInCommonTitleVal != null) {
encodeString(out, 27, thingsInCommonTitleVal);
}
Integer thingsInCommonVal = object.thingsInCommon;
if (thingsInCommonVal != null) {
out.writeInt32(28, thingsInCommonVal.intValue());
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
out.writeInt32(29, interestsInCommonVal.intValue());
}
Integer friendsInCommonVal = object.friendsInCommon;
if (friendsInCommonVal != null) {
out.writeInt32(30, friendsInCommonVal.intValue());
}
Integer isMatchVal = object.isMatch;
if (isMatchVal != null) {
out.writeInt32(31, isMatchVal.intValue());
}
String cityVal = object.city;
if (cityVal != null) {
encodeString(out, 32, cityVal);
}
String countryVal = object.country;
if (countryVal != null) {
encodeString(out, 33, countryVal);
}
Vector facebookFriendsList = object.facebookFriends;
if (facebookFriendsList != null) {
for (c = 0; c < facebookFriendsList.size(); c++) {
ClientFacebookFriend facebookFriendsVal = (ClientFacebookFriend)
facebookFriendsList.elementAt(c);
out.writeBytes(34,
computeClientFacebookFriendSize(facebookFriendsVal));
encodeClientFacebookFriend(out, facebookFriendsVal);
}
}
CreditsRewards creditsRewardsVal = object.creditsRewards;
if (creditsRewardsVal != null) {
out.writeBytes(35, computeCreditsRewardsSize(creditsRewardsVal));
encodeCreditsRewards(out, creditsRewardsVal);
}
Vector awardsList = object.awards;
if (awardsList != null) {
for (c = 0; c < awardsList.size(); c++) {
Award awardsVal = (Award) awardsList.elementAt(c);
out.writeBytes(36, computeAwardSize(awardsVal));
encodeAward(out, awardsVal);
}
}
String matchMessageVal = object.matchMessage;
if (matchMessageVal != null) {
encodeString(out, 38, matchMessageVal);
}
String ageMessageVal = object.ageMessage;
if (ageMessageVal != null) {
encodeString(out, 39, ageMessageVal);
}
Vector fansList = object.fans;
if (fansList != null) {
for (c = 0; c < fansList.size(); c++) {
Person fansVal = (Person) fansList.elementAt(c);
out.writeBytes(40, computePersonSize(fansVal));
encodePerson(out, fansVal);
}
}
Vector socialNetworksList = object.socialNetworks;
if (socialNetworksList != null) {
for (c = 0; c < socialNetworksList.size(); c++) {
SocialNetworkInfo socialNetworksVal = (SocialNetworkInfo)
socialNetworksList.elementAt(c);
out.writeBytes(41,
computeSocialNetworkInfoSize(socialNetworksVal));
encodeSocialNetworkInfo(out, socialNetworksVal);
}
}
ProfileScore profileScoreVal = object.profileScore;
if (profileScoreVal != null) {
out.writeBytes(43, computeProfileScoreSize(profileScoreVal));
encodeProfileScore(out, profileScoreVal);
}
Popularity popularityVal = object.popularity;
if (popularityVal != null) {
out.writeBytes(44, computePopularitySize(popularityVal));
encodePopularity(out, popularityVal);
}
Boolean allowEditNameVal = object.allowEditName;
if (allowEditNameVal != null) {
out.writeBool(45, allowEditNameVal.booleanValue());
}
ExternalProvider personalInformationSourceVal =
object.personalInformationSource;
if (personalInformationSourceVal != null) {
out.writeBytes(46,
computeExternalProviderSize(personalInformationSourceVal));
encodeExternalProvider(out, personalInformationSourceVal);
}
Vector spokenLanguageList = object.spokenLanguage;
if (spokenLanguageList != null) {
for (c = 0; c < spokenLanguageList.size(); c++) {
Language spokenLanguageVal = (Language)
spokenLanguageList.elementAt(c);
out.writeBytes(47, computeLanguageSize(spokenLanguageVal));
encodeLanguage(out, spokenLanguageVal);
}
}
Vector profileFieldList = object.profileField;
if (profileFieldList != null) {
for (c = 0; c < profileFieldList.size(); c++) {
ProfileField profileFieldVal = (ProfileField)
profileFieldList.elementAt(c);
out.writeBytes(48, computeProfileFieldSize(profileFieldVal));
encodeProfileField(out, profileFieldVal);
}
}
}

private void encodePersonStatus(CodedOutputStream out, PersonStatus object)


throws IOException {
encodeString(out, 1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
out.writeInt64(2, dateModifiedVal.longValue());
}
out.writeInt32(3, object.online.getNumber());
out.writeInt32(4, object.lastActive);
Integer distanceVal = object.distance;
if (distanceVal != null) {
out.writeInt32(5, distanceVal.intValue());
}
Boolean onSiteVal = object.onSite;
if (onSiteVal != null) {
out.writeBool(6, onSiteVal.booleanValue());
}
String distanceLongVal = object.distanceLong;
if (distanceLongVal != null) {
encodeString(out, 7, distanceLongVal);
}
String distanceShortVal = object.distanceShort;
if (distanceShortVal != null) {
encodeString(out, 8, distanceShortVal);
}
String activeLongVal = object.activeLong;
if (activeLongVal != null) {
encodeString(out, 9, activeLongVal);
}
Boolean riseupVal = object.riseup;
if (riseupVal != null) {
out.writeBool(10, riseupVal.booleanValue());
}
Boolean isHotVal = object.isHot;
if (isHotVal != null) {
out.writeBool(11, isHotVal.booleanValue());
}
Boolean isNewbieVal = object.isNewbie;
if (isNewbieVal != null) {
out.writeBool(12, isNewbieVal.booleanValue());
}
Double longitudeVal = object.longitude;
if (longitudeVal != null) {
out.writeDouble(13, longitudeVal.doubleValue());
}
Double latitudeVal = object.latitude;
if (latitudeVal != null) {
out.writeDouble(14, latitudeVal.doubleValue());
}
Boolean locationKnownVal = object.locationKnown;
if (locationKnownVal != null) {
out.writeBool(15, locationKnownVal.booleanValue());
}
}

private void encodePhonebookContact(CodedOutputStream out, PhonebookContact


object) throws IOException {
encodeString(out, 1, object.name);
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
PhonebookContactDetail contactsVal = (PhonebookContactDetail)
contactsList.elementAt(c);
out.writeBytes(2, computePhonebookContactDetailSize(contactsVal));
encodePhonebookContactDetail(out, contactsVal);
}
}
String phonebookIdVal = object.phonebookId;
if (phonebookIdVal != null) {
encodeString(out, 3, phonebookIdVal);
}
String photoUrlVal = object.photoUrl;
if (photoUrlVal != null) {
encodeString(out, 4, photoUrlVal);
}
Boolean checkedVal = object.checked;
if (checkedVal != null) {
out.writeBool(5, checkedVal.booleanValue());
}
Boolean disabledVal = object.disabled;
if (disabledVal != null) {
out.writeBool(6, disabledVal.booleanValue());
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 7, userIdVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 8, descriptionVal);
}
}

private void encodePhonebookContactDetail(CodedOutputStream out,


PhonebookContactDetail object) throws IOException {
encodeString(out, 1, object.contact);
out.writeInt32(2, object.type.getNumber());
Boolean canReceiveSmsVal = object.canReceiveSms;
if (canReceiveSmsVal != null) {
out.writeBool(3, canReceiveSmsVal.booleanValue());
}
}

private void encodePhonebookContactlist(CodedOutputStream out,


PhonebookContactlist object) throws IOException {
Vector contactList = object.contact;
if (contactList != null) {
for (int c = 0; c < contactList.size(); c++) {
PhonebookContact contactVal = (PhonebookContact)
contactList.elementAt(c);
out.writeBytes(1, computePhonebookContactSize(contactVal));
encodePhonebookContact(out, contactVal);
}
}
String ownPhoneNumberVal = object.ownPhoneNumber;
if (ownPhoneNumberVal != null) {
encodeString(out, 2, ownPhoneNumberVal);
}
Boolean numberCheckRequiredVal = object.numberCheckRequired;
if (numberCheckRequiredVal != null) {
out.writeBool(3, numberCheckRequiredVal.booleanValue());
}
Boolean ownNumberNeededVal = object.ownNumberNeeded;
if (ownNumberNeededVal != null) {
out.writeBool(4, ownNumberNeededVal.booleanValue());
}
String headerTextVal = object.headerText;
if (headerTextVal != null) {
encodeString(out, 5, headerTextVal);
}
Integer requiredContactCountVal = object.requiredContactCount;
if (requiredContactCountVal != null) {
out.writeInt32(6, requiredContactCountVal.intValue());
}
String legalInfoVal = object.legalInfo;
if (legalInfoVal != null) {
encodeString(out, 7, legalInfoVal);
}
Boolean clientShouldSendSmsVal = object.clientShouldSendSms;
if (clientShouldSendSmsVal != null) {
out.writeBool(8, clientShouldSendSmsVal.booleanValue());
}
Boolean smsAlreadySentVal = object.smsAlreadySent;
if (smsAlreadySentVal != null) {
out.writeBool(9, smsAlreadySentVal.booleanValue());
}
String smsContentTextVal = object.smsContentText;
if (smsContentTextVal != null) {
encodeString(out, 10, smsContentTextVal);
}
ContactListView viewVal = object.view;
if (viewVal != null) {
out.writeInt32(11, viewVal.getNumber());
}
FriendsImportFlow flowVal = object.flow;
if (flowVal != null) {
out.writeInt32(12, flowVal.getNumber());
}
}

private void encodePhoto(CodedOutputStream out, Photo object) throws


IOException {
String idVal = object.id;
if (idVal != null) {
encodeString(out, 1, idVal);
}
String previewUrlVal = object.previewUrl;
if (previewUrlVal != null) {
encodeString(out, 2, previewUrlVal);
}
String largeUrlVal = object.largeUrl;
if (largeUrlVal != null) {
encodeString(out, 3, largeUrlVal);
}
PhotoSize largePhotoSizeVal = object.largePhotoSize;
if (largePhotoSizeVal != null) {
out.writeBytes(4, computePhotoSizeSize(largePhotoSizeVal));
encodePhotoSize(out, largePhotoSizeVal);
}
Point faceTopLeftVal = object.faceTopLeft;
if (faceTopLeftVal != null) {
out.writeBytes(5, computePointSize(faceTopLeftVal));
encodePoint(out, faceTopLeftVal);
}
Point faceBottomRightVal = object.faceBottomRight;
if (faceBottomRightVal != null) {
out.writeBytes(6, computePointSize(faceBottomRightVal));
encodePoint(out, faceBottomRightVal);
}
PhotoRating ratingVal = object.rating;
if (ratingVal != null) {
out.writeBytes(7, computePhotoRatingSize(ratingVal));
encodePhotoRating(out, ratingVal);
}
Boolean canSetAsProfilePhotoVal = object.canSetAsProfilePhoto;
if (canSetAsProfilePhotoVal != null) {
out.writeBool(8, canSetAsProfilePhotoVal.booleanValue());
}
Boolean isPhotoOfMeVal = object.isPhotoOfMe;
if (isPhotoOfMeVal != null) {
out.writeBool(9, isPhotoOfMeVal.booleanValue());
}
Boolean isProfilePhotoVal = object.isProfilePhoto;
if (isProfilePhotoVal != null) {
out.writeBool(10, isProfilePhotoVal.booleanValue());
}
}

private void encodePhotoImportProgress(CodedOutputStream out,


PhotoImportProgress object) throws IOException {
Vector albumsList = object.albums;
if (albumsList != null) {
for (int c = 0; c < albumsList.size(); c++) {
Album albumsVal = (Album) albumsList.elementAt(c);
out.writeBytes(1, computeAlbumSize(albumsVal));
encodeAlbum(out, albumsVal);
}
}
}

private void encodePhotoImportResult(CodedOutputStream out, PhotoImportResult


object) throws IOException {
Album albumVal = object.album;
if (albumVal != null) {
out.writeBytes(1, computeAlbumSize(albumVal));
encodeAlbum(out, albumVal);
}
}

private void encodePhotoRateRange(CodedOutputStream out, PhotoRateRange object)


throws IOException {
Integer topVal = object.top;
if (topVal != null) {
out.writeInt32(1, topVal.intValue());
}
PhotoRateType rateTypeVal = object.rateType;
if (rateTypeVal != null) {
out.writeInt32(2, rateTypeVal.getNumber());
}
String rateActionMessageVal = object.rateActionMessage;
if (rateActionMessageVal != null) {
encodeString(out, 3, rateActionMessageVal);
}
}

private void encodePhotoRating(CodedOutputStream out, PhotoRating object)


throws IOException {
Integer ratingVal = object.rating;
if (ratingVal != null) {
out.writeInt32(1, ratingVal.intValue());
}
String displayRatingVal = object.displayRating;
if (displayRatingVal != null) {
encodeString(out, 2, displayRatingVal);
}
String rateActionMessageVal = object.rateActionMessage;
if (rateActionMessageVal != null) {
encodeString(out, 3, rateActionMessageVal);
}
PhotoRateType rateTypeVal = object.rateType;
if (rateTypeVal != null) {
out.writeInt32(4, rateTypeVal.getNumber());
}
}

private void encodePhotoSize(CodedOutputStream out, PhotoSize object) throws


IOException {
Integer widthVal = object.width;
if (widthVal != null) {
out.writeInt32(1, widthVal.intValue());
}
Integer heightVal = object.height;
if (heightVal != null) {
out.writeInt32(2, heightVal.intValue());
}
}

private void encodePhotoToRate(CodedOutputStream out, PhotoToRate object)


throws IOException {
String photoIdVal = object.photoId;
if (photoIdVal != null) {
encodeString(out, 1, photoIdVal);
}
PhotoRating averageVal = object.average;
if (averageVal != null) {
out.writeBytes(2, computePhotoRatingSize(averageVal));
encodePhotoRating(out, averageVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 3, userIdVal);
}
String photoUrlVal = object.photoUrl;
if (photoUrlVal != null) {
encodeString(out, 4, photoUrlVal);
}
}

private void encodePoint(CodedOutputStream out, Point object) throws


IOException {
Integer xVal = object.f3x;
if (xVal != null) {
out.writeInt32(1, xVal.intValue());
}
Integer yVal = object.f4y;
if (yVal != null) {
out.writeInt32(2, yVal.intValue());
}
}

private void encodePopularity(CodedOutputStream out, Popularity object) throws


IOException {
int c;
String displayValueVal = object.displayValue;
if (displayValueVal != null) {
encodeString(out, 1, displayValueVal);
}
Vector sharingImagesList = object.sharingImages;
if (sharingImagesList != null) {
for (c = 0; c < sharingImagesList.size(); c++) {
encodeString(out, 2, (String) sharingImagesList.elementAt(c));
}
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
SocialSharingProvider sharingProvidersVal = (SocialSharingProvider)
sharingProvidersList.elementAt(c);
out.writeBytes(3,
computeSocialSharingProviderSize(sharingProvidersVal));
encodeSocialSharingProvider(out, sharingProvidersVal);
}
}
}

private void encodeProduct(CodedOutputStream out, Product object) throws


IOException {
encodeString(out, 1, object.uid);
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 2, nameVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 3, descriptionVal);
}
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
PaymentProviderProduct providersVal = (PaymentProviderProduct)
providersList.elementAt(c);
out.writeBytes(4, computePaymentProviderProductSize(providersVal));
encodePaymentProviderProduct(out, providersVal);
}
}
}

private void encodeProductRequest(CodedOutputStream out, ProductRequest object)


throws IOException {
out.writeInt32(1, object.feature.getNumber());
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
out.writeInt32(2, ((PaymentProviderType)
providersList.elementAt(c)).getNumber());
}
}
Integer addressBookCountVal = object.addressBookCount;
if (addressBookCountVal != null) {
out.writeInt32(3, addressBookCountVal.intValue());
}
String googleAdvertisingIdVal = object.googleAdvertisingId;
if (googleAdvertisingIdVal != null) {
encodeString(out, 4, googleAdvertisingIdVal);
}
Boolean googleAdvertisingLimitedAdTrackingVal =
object.googleAdvertisingLimitedAdTracking;
if (googleAdvertisingLimitedAdTrackingVal != null) {
out.writeBool(5, googleAdvertisingLimitedAdTrackingVal.booleanValue());
}
}

private void encodeProductTerms(CodedOutputStream out, ProductTerms object)


throws IOException {
ProviderProductId uidVal = object.uid;
out.writeBytes(1, computeProviderProductIdSize(uidVal));
encodeProviderProductId(out, uidVal);
encodeString(out, 2, object.terms);
}

private void encodeProfileField(CodedOutputStream out, ProfileField object)


throws IOException {
String idVal = object.id;
if (idVal != null) {
encodeString(out, 1, idVal);
}
ProfileOptionType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(2, typeVal.getNumber());
}
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 3, nameVal);
}
encodeString(out, 4, object.displayValue);
}

private void encodeProfileScore(CodedOutputStream out, ProfileScore object)


throws IOException {
int c;
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 1, uidVal);
}
PromoBlock promoBlockVal = object.promoBlock;
if (promoBlockVal != null) {
out.writeBytes(2, computePromoBlockSize(promoBlockVal));
encodePromoBlock(out, promoBlockVal);
}
Vector awardImagesList = object.awardImages;
if (awardImagesList != null) {
for (c = 0; c < awardImagesList.size(); c++) {
encodeString(out, 3, (String) awardImagesList.elementAt(c));
}
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
SocialSharingProvider sharingProvidersVal = (SocialSharingProvider)
sharingProvidersList.elementAt(c);
out.writeBytes(4,
computeSocialSharingProviderSize(sharingProvidersVal));
encodeSocialSharingProvider(out, sharingProvidersVal);
}
}
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 5, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 6, descriptionVal);
}
Integer scoreVal = object.score;
if (scoreVal != null) {
out.writeInt32(7, scoreVal.intValue());
}
SocialFriendsConnectionsBlock socialFriendsConnectionBlockVal =
object.socialFriendsConnectionBlock;
if (socialFriendsConnectionBlockVal != null) {
out.writeBytes(8,
computeSocialFriendsConnectionsBlockSize(socialFriendsConnectionBlockVal));
encodeSocialFriendsConnectionsBlock(out,
socialFriendsConnectionBlockVal);
}
}

private void encodeProfileVisitingSource(CodedOutputStream out,


ProfileVisitingSource object) throws IOException {
encodeString(out, 1, object.personId);
FolderTypes sourceFolderVal = object.sourceFolder;
if (sourceFolderVal != null) {
out.writeInt32(3, sourceFolderVal.getNumber());
}
String sectionIdVal = object.sectionId;
if (sectionIdVal != null) {
encodeString(out, 4, sectionIdVal);
}
ClientSource visitingSourceVal = object.visitingSource;
if (visitingSourceVal != null) {
out.writeInt32(5, visitingSourceVal.getNumber());
}
}

private void encodePromoActionsBlock(CodedOutputStream out, PromoActionsBlock


object) throws IOException {
String promoTextVal = object.promoText;
if (promoTextVal != null) {
encodeString(out, 1, promoTextVal);
}
String promoExplainAnchorVal = object.promoExplainAnchor;
if (promoExplainAnchorVal != null) {
encodeString(out, 2, promoExplainAnchorVal);
}
String promoExplainTextVal = object.promoExplainText;
if (promoExplainTextVal != null) {
encodeString(out, 3, promoExplainTextVal);
}
Vector possibleActionsList = object.possibleActions;
if (possibleActionsList != null) {
for (int c = 0; c < possibleActionsList.size(); c++) {
Button possibleActionsVal = (Button)
possibleActionsList.elementAt(c);
out.writeBytes(4, computeButtonSize(possibleActionsVal));
encodeButton(out, possibleActionsVal);
}
}
}

private void encodePromoBlock(CodedOutputStream out, PromoBlock object) throws


IOException {
Vector imageIdList = object.imageId;
if (imageIdList != null) {
for (int c = 0; c < imageIdList.size(); c++) {
encodeString(out, 1, (String) imageIdList.elementAt(c));
}
}
String mssgVal = object.mssg;
if (mssgVal != null) {
encodeString(out, 2, mssgVal);
}
String actionVal = object.action;
if (actionVal != null) {
encodeString(out, 3, actionVal);
}
String idVal = object.id;
if (idVal != null) {
encodeString(out, 4, idVal);
}
String headerVal = object.header;
if (headerVal != null) {
encodeString(out, 5, headerVal);
}
String cancelTextVal = object.cancelText;
if (cancelTextVal != null) {
encodeString(out, 6, cancelTextVal);
}
ActionType okActionVal = object.okAction;
if (okActionVal != null) {
out.writeInt32(7, okActionVal.getNumber());
}
}

private void encodeProviderName(CodedOutputStream out, ProviderName object)


throws IOException {
out.writeInt32(1, object.provider.getNumber());
encodeString(out, 2, object.providerName);
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 3, descriptionVal);
}
String description2Val = object.description2;
if (description2Val != null) {
encodeString(out, 4, description2Val);
}
String defaultProductUidVal = object.defaultProductUid;
if (defaultProductUidVal != null) {
encodeString(out, 5, defaultProductUidVal);
}
String description3Val = object.description3;
if (description3Val != null) {
encodeString(out, 6, description3Val);
}
Boolean showDisclaimerVal = object.showDisclaimer;
if (showDisclaimerVal != null) {
out.writeBool(7, showDisclaimerVal.booleanValue());
}
Boolean showTopUpVal = object.showTopUp;
if (showTopUpVal != null) {
out.writeBool(8, showTopUpVal.booleanValue());
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(9, providerIdVal.intValue());
}
String supportLinkVal = object.supportLink;
if (supportLinkVal != null) {
encodeString(out, 10, supportLinkVal);
}
}

private void encodeProviderProductId(CodedOutputStream out, ProviderProductId


object) throws IOException {
encodeString(out, 1, object.productUid);
out.writeInt32(2, object.provider.getNumber());
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(3, providerIdVal.intValue());
}
}

private void encodePurchaseReceipt(CodedOutputStream out, PurchaseReceipt


object) throws IOException {
out.writeBool(1, object.paymentSuccess);
encodeString(out, 2, object.transactionIdentifier);
byte[] receiptDataVal = object.receiptData;
if (receiptDataVal != null) {
out.writeBytes(3, computeByteArraySize(receiptDataVal));
encodeByteArray(out, receiptDataVal);
}
Integer errorCodeVal = object.errorCode;
if (errorCodeVal != null) {
out.writeInt32(4, errorCodeVal.intValue());
}
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
out.writeInt32(5, providerVal.getNumber());
}
String productUidVal = object.productUid;
if (productUidVal != null) {
encodeString(out, 6, productUidVal);
}
String photoIdVal = object.photoId;
if (photoIdVal != null) {
encodeString(out, 7, photoIdVal);
}
byte[] receiptSignatureVal = object.receiptSignature;
if (receiptSignatureVal != null) {
out.writeBytes(8, computeByteArraySize(receiptSignatureVal));
encodeByteArray(out, receiptSignatureVal);
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(9, providerIdVal.intValue());
}
}

private void encodePurchaseTransaction(CodedOutputStream out,


PurchaseTransaction object) throws IOException {
encodeString(out, 1, object.uid);
out.writeInt32(2, object.provider.getNumber());
encodeString(out, 3, object.transactionId);
encodeString(out, 4, object.price);
encodeString(out, 5, object.currency);
String providerProductUidVal = object.providerProductUid;
if (providerProductUidVal != null) {
encodeString(out, 6, providerProductUidVal);
}
String providerAccountVal = object.providerAccount;
if (providerAccountVal != null) {
encodeString(out, 7, providerAccountVal);
}
String providerKeyVal = object.providerKey;
if (providerKeyVal != null) {
encodeString(out, 8, providerKeyVal);
}
String processingMessageVal = object.processingMessage;
if (processingMessageVal != null) {
encodeString(out, 9, processingMessageVal);
}
String redirectUrlVal = object.redirectUrl;
if (redirectUrlVal != null) {
encodeString(out, 10, redirectUrlVal);
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(11, providerIdVal.intValue());
}
Vector quickDataEntryList = object.quickDataEntry;
if (quickDataEntryList != null) {
for (int c = 0; c < quickDataEntryList.size(); c++) {
out.writeInt32(12, ((QuickPaymentDataEntryMethod)
quickDataEntryList.elementAt(c)).getNumber());
}
}
Boolean isCarrierBillingVal = object.isCarrierBilling;
if (isCarrierBillingVal != null) {
out.writeBool(13, isCarrierBillingVal.booleanValue());
}
String successUrlVal = object.successUrl;
if (successUrlVal != null) {
encodeString(out, 14, successUrlVal);
}
String errorUrlVal = object.errorUrl;
if (errorUrlVal != null) {
encodeString(out, 15, errorUrlVal);
}
String resultUrlVal = object.resultUrl;
if (resultUrlVal != null) {
encodeString(out, 16, resultUrlVal);
}
Boolean isOneStepVal = object.isOneStep;
if (isOneStepVal != null) {
out.writeBool(17, isOneStepVal.booleanValue());
}
}

private void encodePurchaseTransactionFailed(CodedOutputStream out,


PurchaseTransactionFailed object) throws IOException {
encodeString(out, 1, object.uid);
out.writeInt32(2, object.provider.getNumber());
ClientNotification notificationVal = object.notification;
if (notificationVal != null) {
out.writeBytes(3, computeClientNotificationSize(notificationVal));
encodeClientNotification(out, notificationVal);
}
FormFailure formErrorVal = object.formError;
if (formErrorVal != null) {
out.writeBytes(4, computeFormFailureSize(formErrorVal));
encodeFormFailure(out, formErrorVal);
}
String transactionIdVal = object.transactionId;
if (transactionIdVal != null) {
encodeString(out, 5, transactionIdVal);
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(6, providerIdVal.intValue());
}
}

private void encodePurchaseTransactionSetup(CodedOutputStream out,


PurchaseTransactionSetup object) throws IOException {
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 1, uidVal);
}
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
out.writeInt32(2, providerVal.getNumber());
}
FeatureType featureVal = object.feature;
if (featureVal != null) {
out.writeInt32(3, featureVal.getNumber());
}
String resultUrlVal = object.resultUrl;
if (resultUrlVal != null) {
encodeString(out, 4, resultUrlVal);
}
String termsUrlVal = object.termsUrl;
if (termsUrlVal != null) {
encodeString(out, 5, termsUrlVal);
}
String mimeTypeVal = object.mimeType;
if (mimeTypeVal != null) {
encodeString(out, 6, mimeTypeVal);
}
String errorUrlVal = object.errorUrl;
if (errorUrlVal != null) {
encodeString(out, 7, errorUrlVal);
}
String templateNameVal = object.templateName;
if (templateNameVal != null) {
encodeString(out, 8, templateNameVal);
}
com.badoo.mobile.model.Hashtable paramsVal = object.params;
if (paramsVal != null) {
throw new UnsupportedOperationException();
}
Boolean autoTopUpVal = object.autoTopUp;
if (autoTopUpVal != null) {
out.writeBool(10, autoTopUpVal.booleanValue());
}
Integer providerIdVal = object.providerId;
if (providerIdVal != null) {
out.writeInt32(11, providerIdVal.intValue());
}
PurchaseTransactionSetupParams purchaseParamsVal = object.purchaseParams;
if (purchaseParamsVal != null) {
out.writeBytes(12,
computePurchaseTransactionSetupParamsSize(purchaseParamsVal));
encodePurchaseTransactionSetupParams(out, purchaseParamsVal);
}
ExternalProviderType sharingProviderTypeVal =
object.sharingProviderType; // 13
if (sharingProviderTypeVal != null) {
out.writeInt32(13, sharingProviderTypeVal.getNumber());
}
ClientSource contextVal = object.context; // 14
if (contextVal != null) {
out.writeInt32(14, contextVal.getNumber());
}
PromoBlockType promoBlockTypeVal = object.promoBlockType; // 15
if (promoBlockTypeVal != null) {
out.writeInt32(15, promoBlockTypeVal.getNumber());
}
ChatBlockId chatInitialScreenTypeVal = object.chatInitialScreenType; // 16
if (chatInitialScreenTypeVal != null) {
throw new UnsupportedOperationException();
}
PaymentProductType productTypeVal = object.productType; // 17
if (productTypeVal != null) {
out.writeInt32(17, productTypeVal.getNumber());
}
PaymentProductType creditsForProductVal = object.creditsForProduct; // 18
if (creditsForProductVal != null) {
throw new UnsupportedOperationException();
}
ConnectivityType connectivityTypeVal = object.connectivityType; // 19
if (connectivityTypeVal != null) {
out.writeInt32(19, connectivityTypeVal.getNumber());
}
Boolean isRenewVal = object.isRenew; // 20
if (isRenewVal != null) {
throw new UnsupportedOperationException();
}
String promoBlockVariantIdVal = object.promoBlockVariantId; // 21
if (promoBlockVariantIdVal != null) {
encodeString(out, 21, promoBlockVariantIdVal);
}
PromoTerms shownTermsVal = object.shownTerms; // 22
if (shownTermsVal != null) {
throw new UnsupportedOperationException();
}

private void encodePurchaseTransactionSetupParams(CodedOutputStream out,


PurchaseTransactionSetupParams object) throws IOException {
String photoIdVal = object.photoId;
if (photoIdVal != null) {
encodeString(out, 1, photoIdVal);
}
String msisdnVal = object.msisdn;
if (msisdnVal != null) {
encodeString(out, 2, msisdnVal);
}
String mccVal = object.mcc;
if (mccVal != null) {
encodeString(out, 3, mccVal);
}
String mncVal = object.mnc;
if (mncVal != null) {
encodeString(out, 4, mncVal);
}
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 5, uidVal);
}
}

private void encodeRateFilter(CodedOutputStream out, RateFilter object) throws


IOException {
SexType genderVal = object.gender;
if (genderVal != null) {
out.writeInt32(1, genderVal.getNumber());
}
}

private void encodeRatingViewBlockedInfo(CodedOutputStream out,


RatingViewBlockedInfo object) throws IOException {
Integer votesNeededVal = object.votesNeeded;
if (votesNeededVal != null) {
out.writeInt32(1, votesNeededVal.intValue());
}
Integer votesDoneVal = object.votesDone;
if (votesDoneVal != null) {
out.writeInt32(2, votesDoneVal.intValue());
}
String votesMessageVal = object.votesMessage;
if (votesMessageVal != null) {
encodeString(out, 3, votesMessageVal);
}
String pictureUrlVal = object.pictureUrl;
if (pictureUrlVal != null) {
encodeString(out, 4, pictureUrlVal);
}
}

private void encodeRedirectPage(CodedOutputStream out, RedirectPage object)


throws IOException {
ClientSource redirectPageVal = object.redirectPage;
if (redirectPageVal != null) {
out.writeInt32(1, redirectPageVal.getNumber());
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 2, userIdVal);
}
String tokenVal = object.token;
if (tokenVal != null) {
encodeString(out, 3, tokenVal);
}
}

private void encodeRegistrationStats(CodedOutputStream out, RegistrationStats


object) throws IOException {
RegistrationAction actionVal = object.action;
if (actionVal != null) {
out.writeInt32(1, actionVal.getNumber());
}
RegistrationMethod methodVal = object.method;
if (methodVal != null) {
out.writeInt32(2, methodVal.getNumber());
}
}

private void encodeSEOInfo(CodedOutputStream out, SEOInfo object) throws


IOException {
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 1, titleVal);
}
String descriptionVal = object.description;
if (descriptionVal != null) {
encodeString(out, 2, descriptionVal);
}
String linkVal = object.link;
if (linkVal != null) {
encodeString(out, 3, linkVal);
}
Vector tagsList = object.tags;
if (tagsList != null) {
for (int c = 0; c < tagsList.size(); c++) {
MetaTag tagsVal = (MetaTag) tagsList.elementAt(c);
out.writeBytes(4, computeMetaTagSize(tagsVal));
encodeMetaTag(out, tagsVal);
}
}
}

private void encodeSaveProfile(CodedOutputStream out, SaveProfile object)


throws IOException {
int c;
Hashtable languagesVal = object.languages;
if (languagesVal != null) {
out.writeBytes(1, computeHashtableSize(languagesVal));
encodeHashtable(out, languagesVal);
}
Hashtable profileInfoVal = object.profileInfo;
if (profileInfoVal != null) {
out.writeBytes(2, computeHashtableSize(profileInfoVal));
encodeHashtable(out, profileInfoVal);
}
Vector spokenLanguageList = object.spokenLanguage;
if (spokenLanguageList != null) {
for (c = 0; c < spokenLanguageList.size(); c++) {
Language spokenLanguageVal = (Language)
spokenLanguageList.elementAt(c);
out.writeBytes(3, computeLanguageSize(spokenLanguageVal));
encodeLanguage(out, spokenLanguageVal);
}
}
Vector updatedValuesList = object.updatedValues;
if (updatedValuesList != null) {
for (c = 0; c < updatedValuesList.size(); c++) {
UpdatedProfileValues updatedValuesVal = (UpdatedProfileValues)
updatedValuesList.elementAt(c);
out.writeBytes(4,
computeUpdatedProfileValuesSize(updatedValuesVal));
encodeUpdatedProfileValues(out, updatedValuesVal);
}
}
}

private void encodeSearchResult(CodedOutputStream out, SearchResult object)


throws IOException {
int c;
Person personVal = object.person;
out.writeBytes(1, computePersonSize(personVal));
encodePerson(out, personVal);
PersonStatus personStatusVal = object.personStatus;
out.writeBytes(2, computePersonStatusSize(personStatusVal));
encodePersonStatus(out, personStatusVal);
Boolean hasUserVotedVal = object.hasUserVoted;
if (hasUserVotedVal != null) {
out.writeBool(3, hasUserVotedVal.booleanValue());
}
Vector interestsList = object.interests;
if (interestsList != null) {
for (c = 0; c < interestsList.size(); c++) {
Interest interestsVal = (Interest) interestsList.elementAt(c);
out.writeBytes(6, computeInterestSize(interestsVal));
encodeInterest(out, interestsVal);
}
}
Integer friendsInCommonVal = object.friendsInCommon;
if (friendsInCommonVal != null) {
out.writeInt32(8, friendsInCommonVal.intValue());
}
Integer profileRatingVal = object.profileRating;
if (profileRatingVal != null) {
out.writeInt32(9, profileRatingVal.intValue());
}
Album albumVal = object.album;
if (albumVal != null) {
out.writeBytes(10, computeAlbumSize(albumVal));
encodeAlbum(out, albumVal);
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
out.writeInt32(11, interestsInCommonVal.intValue());
}
Vector sharingProvidersList = object.sharingProviders;
if (sharingProvidersList != null) {
for (c = 0; c < sharingProvidersList.size(); c++) {
SocialSharingProvider sharingProvidersVal = (SocialSharingProvider)
sharingProvidersList.elementAt(c);
out.writeBytes(12,
computeSocialSharingProviderSize(sharingProvidersVal));
encodeSocialSharingProvider(out, sharingProvidersVal);
}
}
Boolean lastFriendVal = object.lastFriend;
if (lastFriendVal != null) {
out.writeBool(13, lastFriendVal.booleanValue());
}
PromoBlock sharingPromoVal = object.sharingPromo;
if (sharingPromoVal != null) {
out.writeBytes(14, computePromoBlockSize(sharingPromoVal));
encodePromoBlock(out, sharingPromoVal);
}
VoteResultType myVoteVal = object.myVote;
if (myVoteVal != null) {
out.writeInt32(15, myVoteVal.getNumber());
}
String matchMessageVal = object.matchMessage;
if (matchMessageVal != null) {
encodeString(out, 16, matchMessageVal);
}
}

private void encodeSearchSettings(CodedOutputStream out, SearchSettings object)


throws IOException {
int c;
out.writeInt32(1, object.contextType.getNumber());
String wishVal = object.wish;
if (wishVal != null) {
encodeString(out, 2, wishVal);
}
Vector genderList = object.gender;
if (genderList != null) {
for (c = 0; c < genderList.size(); c++) {
out.writeInt32(3, ((SexType) genderList.elementAt(c)).getNumber());
}
}
Integer fromAgeVal = object.fromAge;
if (fromAgeVal != null) {
out.writeInt32(4, fromAgeVal.intValue());
}
Integer toAgeVal = object.toAge;
if (toAgeVal != null) {
out.writeInt32(5, toAgeVal.intValue());
}
Integer numberVal = object.number;
if (numberVal != null) {
out.writeInt32(6, numberVal.intValue());
}
Integer locationIdVal = object.locationId;
if (locationIdVal != null) {
out.writeInt32(8, locationIdVal.intValue());
}
Boolean previouslySavedVal = object.previouslySaved;
if (previouslySavedVal != null) {
out.writeBool(9, previouslySavedVal.booleanValue());
}
String locationNameVal = object.locationName;
if (locationNameVal != null) {
encodeString(out, 10, locationNameVal);
}
Boolean isCustomTiwAllowedVal = object.isCustomTiwAllowed;
if (isCustomTiwAllowedVal != null) {
out.writeBool(11, isCustomTiwAllowedVal.booleanValue());
}
FolderTypes folderIdVal = object.folderId;
if (folderIdVal != null) {
out.writeInt32(12, folderIdVal.getNumber());
}
Vector tiwIdeasList = object.tiwIdeas;
if (tiwIdeasList != null) {
for (c = 0; c < tiwIdeasList.size(); c++) {
TiwIdea tiwIdeasVal = (TiwIdea) tiwIdeasList.elementAt(c);
out.writeBytes(14, computeTiwIdeaSize(tiwIdeasVal));
encodeTiwIdea(out, tiwIdeasVal);
}
}
Integer tiwPhraseIdVal = object.tiwPhraseId;
if (tiwPhraseIdVal != null) {
out.writeInt32(15, tiwPhraseIdVal.intValue());
}
Vector nearbyAgeRangeList = object.nearbyAgeRange;
if (nearbyAgeRangeList != null) {
for (c = 0; c < nearbyAgeRangeList.size(); c++) {
SearchSettingsAgeOption nearbyAgeRangeVal =
(SearchSettingsAgeOption) nearbyAgeRangeList.elementAt(c);
out.writeBytes(16,
computeSearchSettingsAgeOptionSize(nearbyAgeRangeVal));
encodeSearchSettingsAgeOption(out, nearbyAgeRangeVal);
}
}
Integer currentAgeOptionVal = object.currentAgeOption;
if (currentAgeOptionVal != null) {
out.writeInt32(17, currentAgeOptionVal.intValue());
}
Integer minAgeRangeVal = object.minAgeRange;
if (minAgeRangeVal != null) {
out.writeInt32(18, minAgeRangeVal.intValue());
}
Boolean voteOnCelebritiesVal = object.voteOnCelebrities;
if (voteOnCelebritiesVal != null) {
out.writeBool(19, voteOnCelebritiesVal.booleanValue());
}
}

private void encodeSearchSettingsAgeOption(CodedOutputStream out,


SearchSettingsAgeOption object) throws IOException {
Integer ageOptionIdVal = object.ageOptionId;
if (ageOptionIdVal != null) {
out.writeInt32(1, ageOptionIdVal.intValue());
}
String displayTextVal = object.displayText;
if (displayTextVal != null) {
encodeString(out, 2, displayTextVal);
}
}

private void encodeSearchSettingsContext(CodedOutputStream out,


SearchSettingsContext object) throws IOException {
out.writeInt32(1, object.searchResponseContext.getNumber());
}

private void encodeSearchSettingsFailure(CodedOutputStream out,


SearchSettingsFailure object) throws IOException {
out.writeInt32(1, object.contextType.getNumber());
Vector errorsList = object.errors;
if (errorsList != null) {
for (int c = 0; c < errorsList.size(); c++) {
FieldError errorsVal = (FieldError) errorsList.elementAt(c);
out.writeBytes(2, computeFieldErrorSize(errorsVal));
encodeFieldError(out, errorsVal);
}
}
}

private void encodeSectionUser(CodedOutputStream out, SectionUser object)


throws IOException {
encodeString(out, 1, object.uid);
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 2, nameVal);
}
Integer ageVal = object.age;
if (ageVal != null) {
out.writeInt32(3, ageVal.intValue());
}
SexType genderVal = object.gender;
if (genderVal != null) {
out.writeInt32(4, genderVal.getNumber());
}
String wishVal = object.wish;
if (wishVal != null) {
encodeString(out, 5, wishVal);
}
String previewImageUrlVal = object.previewImageUrl;
if (previewImageUrlVal != null) {
encodeString(out, 6, previewImageUrlVal);
}
Integer numberOfPhotosVal = object.numberOfPhotos;
if (numberOfPhotosVal != null) {
out.writeInt32(7, numberOfPhotosVal.intValue());
}
Boolean deletedVal = object.deleted;
if (deletedVal != null) {
out.writeBool(8, deletedVal.booleanValue());
}
Boolean pendingVal = object.pending;
if (pendingVal != null) {
out.writeBool(9, pendingVal.booleanValue());
}
Boolean invisibleVal = object.invisible;
if (invisibleVal != null) {
out.writeBool(10, invisibleVal.booleanValue());
}
OnlineStatus onlineStatusVal = object.onlineStatus;
if (onlineStatusVal != null) {
out.writeInt32(11, onlineStatusVal.getNumber());
}
Boolean unreadVal = object.unread;
if (unreadVal != null) {
out.writeBool(12, unreadVal.booleanValue());
}
Long spotlightIdVal = object.spotlightId;
if (spotlightIdVal != null) {
out.writeInt64(13, spotlightIdVal.longValue());
}
Boolean verifiedUserVal = object.verifiedUser;
if (verifiedUserVal != null) {
out.writeBool(14, verifiedUserVal.booleanValue());
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
encodeString(out, 15, displayMessageVal);
}
String distanceShortVal = object.distanceShort;
if (distanceShortVal != null) {
encodeString(out, 16, distanceShortVal);
}
Integer unreadMessagesVal = object.unreadMessages;
if (unreadMessagesVal != null) {
out.writeInt32(18, unreadMessagesVal.intValue());
}
Integer thingsInCommonVal = object.thingsInCommon;
if (thingsInCommonVal != null) {
out.writeInt32(19, thingsInCommonVal.intValue());
}
Integer interestsInCommonVal = object.interestsInCommon;
if (interestsInCommonVal != null) {
out.writeInt32(20, interestsInCommonVal.intValue());
}
Integer friendsInCommonVal = object.friendsInCommon;
if (friendsInCommonVal != null) {
out.writeInt32(21, friendsInCommonVal.intValue());
}
Boolean isMatchVal = object.isMatch;
if (isMatchVal != null) {
out.writeBool(22, isMatchVal.booleanValue());
}
Boolean ownsSlotVal = object.ownsSlot;
if (ownsSlotVal != null) {
out.writeBool(23, ownsSlotVal.booleanValue());
}
Boolean isCelebrityVal = object.isCelebrity;
if (isCelebrityVal != null) {
out.writeBool(24, isCelebrityVal.booleanValue());
}
Vector ratedPhotosList = object.ratedPhotos;
if (ratedPhotosList != null) {
for (int c = 0; c < ratedPhotosList.size(); c++) {
Photo ratedPhotosVal = (Photo) ratedPhotosList.elementAt(c);
out.writeBytes(25, computePhotoSize(ratedPhotosVal));
encodePhoto(out, ratedPhotosVal);
}
}
VoteResultType myVoteVal = object.myVote;
if (myVoteVal != null) {
out.writeInt32(26, myVoteVal.getNumber());
}
}

private void encodeSectionUserActionList(CodedOutputStream out,


SectionUserActionList object) throws IOException {
String sectionIdVal = object.sectionId;
if (sectionIdVal != null) {
encodeString(out, 1, sectionIdVal);
}
Vector personIdList = object.personId;
if (personIdList != null) {
for (int c = 0; c < personIdList.size(); c++) {
encodeString(out, 2, (String) personIdList.elementAt(c));
}
}
}

private void encodeSelectFriendsSection(CodedOutputStream out,


SelectFriendsSection object) throws IOException {
String titleVal = object.title;
if (titleVal != null) {
encodeString(out, 1, titleVal);
}
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
PhonebookContact contactsVal = (PhonebookContact)
contactsList.elementAt(c);
out.writeBytes(2, computePhonebookContactSize(contactsVal));
encodePhonebookContact(out, contactsVal);
}
}
}

private void encodeServerAnonymousChat(CodedOutputStream out,


ServerAnonymousChat object) throws IOException {
Boolean expandedSearchVal = object.expandedSearch;
if (expandedSearchVal != null) {
out.writeBool(1, expandedSearchVal.booleanValue());
}
Boolean forceNewChatVal = object.forceNewChat;
if (forceNewChatVal != null) {
out.writeBool(2, forceNewChatVal.booleanValue());
}
Boolean onlyExistingVal = object.onlyExisting;
if (onlyExistingVal != null) {
out.writeBool(3, onlyExistingVal.booleanValue());
}
}

private void encodeServerAnonymousChatReveal(CodedOutputStream out,


ServerAnonymousChatReveal object) throws IOException {
String chatIdVal = object.chatId;
if (chatIdVal != null) {
encodeString(out, 1, chatIdVal);
}
}

private void encodeServerAppStartup(CodedOutputStream out, ServerAppStartup


object) throws IOException {
int c;
encodeString(out, 1, object.appVersion);
encodeString(out, 2, object.appBuild);
encodeString(out, 3, object.userAgent);
out.writeInt32(4, object.screenHeight);
out.writeInt32(5, object.screenWidth);
out.writeInt32(6, object.language);
String localeVal = object.locale;
if (localeVal != null) {
encodeString(out, 7, localeVal);
}
Hashtable jadPropertiesVal = object.jadProperties;
if (jadPropertiesVal != null) {
out.writeBytes(8, computeHashtableSize(jadPropertiesVal));
encodeHashtable(out, jadPropertiesVal);
}
encodeString(out, 9, object.appName);
String countryCodeVal = object.countryCode;
if (countryCodeVal != null) {
encodeString(out, 10, countryCodeVal);
}
String deviceIdVal = object.deviceId;
if (deviceIdVal != null) {
encodeString(out, 11, deviceIdVal);
}
String sessionIdVal = object.sessionId;
if (sessionIdVal != null) {
encodeString(out, 12, sessionIdVal);
}
Boolean backgroundSessionVal = object.backgroundSession;
if (backgroundSessionVal != null) {
out.writeBool(13, backgroundSessionVal.booleanValue());
}
String appTypeVal = object.appType;
if (appTypeVal != null) {
encodeString(out, 14, appTypeVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 15, userIdVal);
}
String referrerVal = object.referrer;
if (referrerVal != null) {
encodeString(out, 16, referrerVal);
}
Vector supportedPaymentProvidersList = object.supportedPaymentProviders;
if (supportedPaymentProvidersList != null) {
for (c = 0; c < supportedPaymentProvidersList.size(); c++) {
out.writeInt32(17, ((PaymentProviderType)
supportedPaymentProvidersList.elementAt(c)).getNumber());
}
}
String affiliateVal = object.affiliate;
if (affiliateVal != null) {
encodeString(out, 19, affiliateVal);
}
String timezoneLocationVal = object.timezoneLocation;
if (timezoneLocationVal != null) {
encodeString(out, 20, timezoneLocationVal);
}
Integer timezoneGmtOffsetVal = object.timezoneGmtOffset;
if (timezoneGmtOffsetVal != null) {
out.writeInt32(21, timezoneGmtOffsetVal.intValue());
}
String smsVerificationCodeVal = object.smsVerificationCode;
if (smsVerificationCodeVal != null) {
encodeString(out, 22, smsVerificationCodeVal);
}
String invcredIdVal = object.invcredId;
if (invcredIdVal != null) {
encodeString(out, 23, invcredIdVal);
}
String openUdidVal = object.openUdid;
if (openUdidVal != null) {
encodeString(out, 24, openUdidVal);
}
String imsiVal = object.imsi;
if (imsiVal != null) {
encodeString(out, 25, imsiVal);
}
Boolean deactivateOtherUserVal = object.deactivateOtherUser;
if (deactivateOtherUserVal != null) {
out.writeBool(26, deactivateOtherUserVal.booleanValue());
}
Boolean canSendSmsVal = object.canSendSms;
if (canSendSmsVal != null) {
out.writeBool(27, canSendSmsVal.booleanValue());
}
String oauthTrustedRedirectUrlVal = object.oauthTrustedRedirectUrl;
if (oauthTrustedRedirectUrlVal != null) {
encodeString(out, 28, oauthTrustedRedirectUrlVal);
}
String honBadooContinueUrlVal = object.honBadooContinueUrl;
if (honBadooContinueUrlVal != null) {
encodeString(out, 29, honBadooContinueUrlVal);
}
String vendorIdVal = object.vendorId;
if (vendorIdVal != null) {
encodeString(out, 30, vendorIdVal);
}
String advertisingIdVal = object.advertisingId;
if (advertisingIdVal != null) {
encodeString(out, 31, advertisingIdVal);
}
ABTestingSettings aBTestingSettingsVal = object.aBTestingSettings;
if (aBTestingSettingsVal != null) {
out.writeBytes(32, computeABTestingSettingsSize(aBTestingSettingsVal));
encodeABTestingSettings(out, aBTestingSettingsVal);
}
String accessTokenVal = object.accessToken;
if (accessTokenVal != null) {
encodeString(out, 33, accessTokenVal);
}
RadioType radioTypeVal = object.radioType;
if (radioTypeVal != null) {
out.writeInt32(34, radioTypeVal.getNumber());
}
BuildConfiguration buildConfigurationVal = object.buildConfiguration;
if (buildConfigurationVal != null) {
out.writeInt32(35, buildConfigurationVal.getNumber());
}
String apsTokenVal = object.apsToken;
if (apsTokenVal != null) {
encodeString(out, 36, apsTokenVal);
}
String deviceRegidVal = object.deviceRegid;
if (deviceRegidVal != null) {
encodeString(out, 37, deviceRegidVal);
}
String msPushChannelUriVal = object.msPushChannelUri;
if (msPushChannelUriVal != null) {
encodeString(out, 38, msPushChannelUriVal);
}
String androidIdVal = object.androidId;
if (androidIdVal != null) {
encodeString(out, 39, androidIdVal);
}
String mccVal = object.mcc;
if (mccVal != null) {
encodeString(out, 40, mccVal);
}
String mncVal = object.mnc;
if (mncVal != null) {
encodeString(out, 41, mncVal);
}
String msisdnVal = object.msisdn;
if (msisdnVal != null) {
encodeString(out, 42, msisdnVal);
}
Vector supportedMinorFeaturesList = object.supportedMinorFeatures;
if (supportedMinorFeaturesList != null) {
for (c = 0; c < supportedMinorFeaturesList.size(); c++) {
out.writeInt32(43, ((MinorFeature)
supportedMinorFeaturesList.elementAt(c)).getNumber());
}
}
Vector supportedFeaturesList = object.supportedFeatures;
if (supportedFeaturesList != null) {
for (c = 0; c < supportedFeaturesList.size(); c++) {
out.writeInt32(44, ((FeatureType)
supportedFeaturesList.elementAt(c)).getNumber());
}
}
Boolean embeddedMobileWebVal = object.embeddedMobileWeb;
if (embeddedMobileWebVal != null) {
out.writeBool(45, embeddedMobileWebVal.booleanValue());
}
ServerAppStatsStartSource startSourceVal = object.startSource;
if (startSourceVal != null) {
out.writeBytes(46,
computeServerAppStatsStartSourceSize(startSourceVal));
encodeServerAppStatsStartSource(out, startSourceVal);
}

Vector devFeaturesList = object.devFeatures;


if (devFeaturesList != null) {
for (c = 0; c < devFeaturesList.size(); c++) {
encodeString(out, 47, (String) devFeaturesList.elementAt(c));
}
}
String externalProviderRedirectUrlVal = object.externalProviderRedirectUrl;
if (externalProviderRedirectUrlVal != null) {
encodeString(out, 48, externalProviderRedirectUrlVal);
}
Vector verificationProviderSupportList =
object.verificationProviderSupport;
if (verificationProviderSupportList != null) {
for (c = 0; c < verificationProviderSupportList.size(); c++) {
out.writeInt32(50, ((ExternalProviderType)
verificationProviderSupportList.elementAt(c)).getNumber());
}
}
Boolean supportClientMapsVal = object.supportClientMaps;
if (supportClientMapsVal != null) {
out.writeBool(52, supportClientMapsVal.booleanValue());
}
UserFieldFilter userFieldFilterClientLoginSuccessVal =
object.userFieldFilterClientLoginSuccess;
if (userFieldFilterClientLoginSuccessVal != null) {
out.writeBytes(55,
computeUserFieldFilterSize(userFieldFilterClientLoginSuccessVal));
encodeUserFieldFilter(out, userFieldFilterClientLoginSuccessVal);
}
UserFieldFilter userFieldFilterChatMessageFromVal =
object.userFieldFilterChatMessageFrom;
if (userFieldFilterChatMessageFromVal != null) {
out.writeBytes(56,
computeUserFieldFilterSize(userFieldFilterChatMessageFromVal));
encodeUserFieldFilter(out, userFieldFilterChatMessageFromVal);
}
String hotpanelSessionIdVal = object.hotpanelSessionId;
if (hotpanelSessionIdVal != null) {
encodeString(out, 57, hotpanelSessionIdVal);
}
Vector supportedNotificationsList = object.supportedNotifications;
if (supportedNotificationsList != null) {
for (c = 0; c < supportedNotificationsList.size(); c++) {
out.writeInt32(58, ((ClientNotificationType)
supportedNotificationsList.elementAt(c)).getNumber());
}
}
PlatformType platformTypeVal = object.appPlatformType;
if (platformTypeVal != null) {
out.writeInt32(59, platformTypeVal.getNumber());
}
AppProductType appProductTypeVal = object.appProductType;
if (appProductTypeVal != null) {
out.writeInt32(60, appProductTypeVal.getNumber());
}
String networkOperatorNameVal = object.networkOperatorName;
if (networkOperatorNameVal != null) {
encodeString(out, 64, networkOperatorNameVal);
}
String lexemesVersionVal = object.lexemesVersion;
if (lexemesVersionVal != null) {
encodeString(out, 67, lexemesVersionVal);
}
Boolean isFirstLaunchVal = object.isFirstLaunch;
if (isFirstLaunchVal != null) {
out.writeBool(70, isFirstLaunchVal.booleanValue());
}
Boolean googleAdvertisingLimitedAdTrackingVal =
object.googleAdvertisingLimitedAdTracking;
if (googleAdvertisingLimitedAdTrackingVal != null) {
out.writeBool(73,
googleAdvertisingLimitedAdTrackingVal.booleanValue());
}
Vector supportedOnboardingTypesList = object.supportedOnboardingTypes;
if (supportedOnboardingTypesList != null) {
for (c = 0; c < supportedOnboardingTypesList.size(); c++) {
out.writeInt32(77, ((OnboardingPageType)
supportedOnboardingTypesList.elementAt(c)).getNumber());
}
}
String appsflyerDeviceIdVal = object.appsflyerDeviceId;
if (appsflyerDeviceIdVal != null) {
encodeString(out, 91, appsflyerDeviceIdVal);
}
}

private void encodeServerAppStats(CodedOutputStream out, ServerAppStats object)


throws IOException {
ServerAppStatsStartSource startSourceVal = object.startSource;
if (startSourceVal != null) {
out.writeBytes(1,
computeServerAppStatsStartSourceSize(startSourceVal));
encodeServerAppStatsStartSource(out, startSourceVal);
}
TrustedNetworkStats tnSourceVal = object.tnSource;
if (tnSourceVal != null) {
out.writeBytes(2, computeTrustedNetworkStatsSize(tnSourceVal));
encodeTrustedNetworkStats(out, tnSourceVal);
}
OfferwallStats offerwallSourceVal = object.offerwallSource;
if (offerwallSourceVal != null) {
out.writeBytes(3, computeOfferwallStatsSize(offerwallSourceVal));
encodeOfferwallStats(out, offerwallSourceVal);
}
SharingStats sharingStatsVal = object.sharingStats;
if (sharingStatsVal != null) {
out.writeBytes(4, computeSharingStatsSize(sharingStatsVal));
encodeSharingStats(out, sharingStatsVal);
}
RegistrationStats registrationStatsVal = object.registrationStats;
if (registrationStatsVal != null) {
out.writeBytes(5, computeRegistrationStatsSize(registrationStatsVal));
encodeRegistrationStats(out, registrationStatsVal);
}
FriendOrCelebritySharingStats friendOrCelebritySharingVal =
object.friendOrCelebritySharing;
if (friendOrCelebritySharingVal != null) {
out.writeBytes(6,
computeFriendOrCelebritySharingStatsSize(friendOrCelebritySharingVal));
encodeFriendOrCelebritySharingStats(out, friendOrCelebritySharingVal);
}
StarRatingStats starRatingStatsVal = object.starRatingStats;
if (starRatingStatsVal != null) {
out.writeBytes(7, computeStarRatingStatsSize(starRatingStatsVal));
encodeStarRatingStats(out, starRatingStatsVal);
}
}

private void encodeServerAppStatsStartSource(CodedOutputStream out,


ServerAppStatsStartSource object) throws IOException {
ServerAppStatsStartSourceType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(1, typeVal.getNumber());
}
String sourceIdVal = object.sourceId;
if (sourceIdVal != null) {
encodeString(out, 3, sourceIdVal);
}
ClientSource startScreenVal = object.startScreen;
if (startScreenVal != null) {
out.writeInt32(4, startScreenVal.getNumber());
}
}

private void encodeServerCaptchaAttempt(CodedOutputStream out,


ServerCaptchaAttempt object) throws IOException {
encodeString(out, 1, object.uid);
encodeString(out, 2, object.imageId);
encodeString(out, 3, object.answer);
}

private void encodeServerChangePassword(CodedOutputStream out,


ServerChangePassword object) throws IOException {
String currentPasswordVal = object.currentPassword;
if (currentPasswordVal != null) {
encodeString(out, 1, currentPasswordVal);
}
String updatedPasswordVal = object.updatedPassword;
if (updatedPasswordVal != null) {
encodeString(out, 2, updatedPasswordVal);
}
String changePasswordTokenVal = object.changePasswordToken;
if (changePasswordTokenVal != null) {
encodeString(out, 3, changePasswordTokenVal);
}
}

private void encodeServerCheckExternalProviderImportProgress(CodedOutputStream


out, ServerCheckExternalProviderImportProgress object) throws IOException {
String importIdVal = object.importId;
if (importIdVal != null) {
encodeString(out, 1, importIdVal);
}
}

private void encodeServerCheckFriendsImport(CodedOutputStream out,


ServerCheckFriendsImport object) throws IOException {
String importIdVal = object.importId;
if (importIdVal != null) {
encodeString(out, 1, importIdVal);
}
}

private void encodeServerConnectAllContacts(CodedOutputStream out,


ServerConnectAllContacts object) throws IOException {
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 1, uidVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(3, contextVal.getNumber());
}
}

private void encodeServerDeleteAccount(CodedOutputStream out,


ServerDeleteAccount object) throws IOException {
String reasonCodeVal = object.reasonCode;
if (reasonCodeVal != null) {
encodeString(out, 1, reasonCodeVal);
}
String textVal = object.text;
if (textVal != null) {
encodeString(out, 2, textVal);
}
}
private void encodeServerEncountersVote(CodedOutputStream out,
ServerEncountersVote object) throws IOException {
encodeString(out, 1, object.personId);
out.writeInt32(2, object.vote.getNumber());
String photoIdVal = object.photoId;
if (photoIdVal != null) {
encodeString(out, 3, photoIdVal);
}
ClientSource voteSourceVal = object.voteSource;
if (voteSourceVal != null) {
out.writeInt32(4, voteSourceVal.getNumber());
}
}

private void encodeServerErrorMessage(CodedOutputStream out, ServerErrorMessage


object) throws IOException {
encodeString(out, 1, object.errorCode);
encodeString(out, 2, object.errorMessage);
ApplicationFeature featureVal = object.feature;
if (featureVal != null) {
out.writeBytes(3, computeApplicationFeatureSize(featureVal));
encodeApplicationFeature(out, featureVal);
}
String errorIdVal = object.errorId;
if (errorIdVal != null) {
encodeString(out, 4, errorIdVal);
}
String errorTitleVal = object.errorTitle;
if (errorTitleVal != null) {
encodeString(out, 5, errorTitleVal);
}
Long errorEtaVal = object.errorEta;
if (errorEtaVal != null) {
out.writeInt64(6, errorEtaVal.longValue());
}
ServerErrorType typeVal = object.type;
if (typeVal != null) {
out.writeInt32(7, typeVal.getNumber());
}
}

private void encodeServerFeedbackForm(CodedOutputStream out, ServerFeedbackForm


object) throws IOException {
encodeString(out, 1, object.feedbackType);
encodeString(out, 2, object.feedback);
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 3, nameVal);
}
String emailVal = object.email;
if (emailVal != null) {
encodeString(out, 4, emailVal);
}
Integer starRatingVal = object.starRating;
if (starRatingVal != null) {
out.writeInt32(5, starRatingVal.intValue());
}
byte[] screenshotVal = object.screenshot;
if (screenshotVal != null) {
out.writeBytes(6, computeByteArraySize(screenshotVal));
encodeByteArray(out, screenshotVal);
}
}

private void encodeServerFinishExternalProviderImport(CodedOutputStream out,


ServerFinishExternalProviderImport object) throws IOException {
String importIdVal = object.importId;
if (importIdVal != null) {
encodeString(out, 1, importIdVal);
}
FinishContactImport finishContactImportDataVal =
object.finishContactImportData;
if (finishContactImportDataVal != null) {
out.writeBytes(2,
computeFinishContactImportSize(finishContactImportDataVal));
encodeFinishContactImport(out, finishContactImportDataVal);
}
FinishPhotoImport finishPhotoImportDataVal = object.finishPhotoImportData;
if (finishPhotoImportDataVal != null) {
out.writeBytes(3,
computeFinishPhotoImportSize(finishPhotoImportDataVal));
encodeFinishPhotoImport(out, finishPhotoImportDataVal);
}
}

private void encodeServerFinishFriendsImport(CodedOutputStream out,


ServerFinishFriendsImport object) throws IOException {
String importIdVal = object.importId;
if (importIdVal != null) {
encodeString(out, 1, importIdVal);
}
Vector contactsList = object.contacts;
if (contactsList != null) {
for (int c = 0; c < contactsList.size(); c++) {
PhonebookContact contactsVal = (PhonebookContact)
contactsList.elementAt(c);
out.writeBytes(2, computePhonebookContactSize(contactsVal));
encodePhonebookContact(out, contactsVal);
}
}
Boolean smsAlreadySentVal = object.smsAlreadySent;
if (smsAlreadySentVal != null) {
out.writeBool(3, smsAlreadySentVal.booleanValue());
}
}

private void encodeServerFolderAction(CodedOutputStream out, ServerFolderAction


object) throws IOException {
out.writeInt32(1, object.folderId.getNumber());
encodeString(out, 2, object.personId);
String customFolderIdVal = object.customFolderId;
if (customFolderIdVal != null) {
encodeString(out, 3, customFolderIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(5, contextVal.getNumber());
}
}

private void encodeServerGetAlbum(CodedOutputStream out, ServerGetAlbum object)


throws IOException {
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 1, personIdVal);
}
String albumIdVal = object.albumId;
if (albumIdVal != null) {
encodeString(out, 2, albumIdVal);
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(3, offsetVal.intValue());
}
Integer countVal = object.count;
if (countVal != null) {
out.writeInt32(4, countVal.intValue());
}
AlbumType albumTypeVal = object.albumType;
if (albumTypeVal != null) {
out.writeInt32(5, albumTypeVal.getNumber());
}
}

private void encodeServerGetAward(CodedOutputStream out, ServerGetAward object)


throws IOException {
String awardIdVal = object.awardId;
if (awardIdVal != null) {
encodeString(out, 1, awardIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(2, contextVal.getNumber());
}
}

private void encodeServerGetCaptcha(CodedOutputStream out, ServerGetCaptcha


object) throws IOException {
encodeString(out, 1, object.uid);
Boolean forceNewVal = object.forceNew;
if (forceNewVal != null) {
out.writeBool(2, forceNewVal.booleanValue());
}
}

private void encodeServerGetChatMessages(CodedOutputStream out,


ServerGetChatMessages object) throws IOException {
encodeString(out, 1, object.chatInstanceId);
PaginationPosition beginsAtVal = object.beginsAt;
if (beginsAtVal != null) {
out.writeInt32(2, beginsAtVal.getNumber());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(3, offsetVal.intValue());
}
Long messageIdVal = object.messageId;
if (messageIdVal != null) {
out.writeInt64(4, messageIdVal.longValue());
}
Integer countVal = object.count;
if (countVal != null) {
out.writeInt32(5, countVal.intValue());
}
TraversalDirection directionVal = object.direction;
if (directionVal != null) {
out.writeInt32(6, directionVal.getNumber());
}
Boolean inclusiveVal = object.inclusive;
if (inclusiveVal != null) {
out.writeBool(7, inclusiveVal.booleanValue());
}
}

private void encodeServerGetCity(CodedOutputStream out, ServerGetCity object)


throws IOException {
Integer cityIdVal = object.cityId;
if (cityIdVal != null) {
out.writeInt32(1, cityIdVal.intValue());
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 2, userIdVal);
}
Double longitudeVal = object.longitude;
if (longitudeVal != null) {
out.writeDouble(3, longitudeVal.doubleValue());
}
Double latitudeVal = object.latitude;
if (latitudeVal != null) {
out.writeDouble(4, latitudeVal.doubleValue());
}
}

private void encodeServerGetEncounters(CodedOutputStream out,


ServerGetEncounters object) throws IOException {
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(2, offsetVal.intValue());
}
out.writeInt32(3, object.number);
String lastPersonIdVal = object.lastPersonId;
if (lastPersonIdVal != null) {
encodeString(out, 4, lastPersonIdVal);
}
Vector requestedPersonIdsList = object.requestedPersonIds;
if (requestedPersonIdsList != null) {
for (int c = 0; c < requestedPersonIdsList.size(); c++) {
encodeString(out, 5, (String) requestedPersonIdsList.elementAt(c));
}
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(6, contextVal.getNumber());
}
}

private void encodeServerGetExternalProviders(CodedOutputStream out,


ServerGetExternalProviders object) throws IOException {
String redirectUrlVal = object.redirectUrl;
if (redirectUrlVal != null) {
encodeString(out, 1, redirectUrlVal);
}
PhoneBookReferrer sourceVal = object.source;
if (sourceVal != null) {
out.writeInt32(2, sourceVal.getNumber());
}
ExternalProviderContext contextVal = object.context;
if (contextVal != null) {
out.writeInt32(3, contextVal.getNumber());
}
Vector nativeSupportList = object.nativeSupport;
if (nativeSupportList != null) {
for (int c = 0; c < nativeSupportList.size(); c++) {
out.writeInt32(4, ((ExternalProviderType)
nativeSupportList.elementAt(c)).getNumber());
}
}
ClientSource referrerVal = object.referrer;
if (referrerVal != null) {
out.writeInt32(5, referrerVal.getNumber());
}
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 6, personIdVal);
}
}

private void encodeServerGetPersonProfile(CodedOutputStream out,


ServerGetPersonProfile object) throws IOException {
encodeString(out, 1, object.personId);
}

private void encodeServerGetPhotosToRate(CodedOutputStream out,


ServerGetPhotosToRate object) throws IOException {
String lastKnownPhotoIdVal = object.lastKnownPhotoId;
if (lastKnownPhotoIdVal != null) {
encodeString(out, 1, lastKnownPhotoIdVal);
}
Integer countVal = object.count;
if (countVal != null) {
out.writeInt32(2, countVal.intValue());
}
RateFilter filterVal = object.filter;
if (filterVal != null) {
out.writeBytes(3, computeRateFilterSize(filterVal));
encodeRateFilter(out, filterVal);
}
}

private void encodeServerGetProfileScore(CodedOutputStream out,


ServerGetProfileScore object) throws IOException {
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 1, uidVal);
}
String pushIdVal = object.pushId;
if (pushIdVal != null) {
encodeString(out, 2, pushIdVal);
}
}

private void encodeServerGetSocialFriendsConnections(CodedOutputStream out,


ServerGetSocialFriendsConnections object) throws IOException {
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 1, personIdVal);
}
ClientSource sourceVal = object.source;
if (sourceVal != null) {
out.writeInt32(3, sourceVal.getNumber());
}
}

private void encodeServerGetSocialSharingProviders(CodedOutputStream out,


ServerGetSocialSharingProviders object) throws IOException {
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 1, uidVal);
}
SocialSharingProviderContext contextDeprecatedVal =
object.contextDeprecated;
if (contextDeprecatedVal != null) {
out.writeInt32(2, contextDeprecatedVal.getNumber());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(3, contextVal.getNumber());
}
}

private void encodeServerGetTiwIdeas(CodedOutputStream out, ServerGetTiwIdeas


object) throws IOException {
String groupVal = object.group;
if (groupVal != null) {
encodeString(out, 1, groupVal);
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(2, offsetVal.intValue());
}
Integer limitVal = object.limit;
if (limitVal != null) {
out.writeInt32(3, limitVal.intValue());
}
}

private void encodeServerGetUserList(CodedOutputStream out, ServerGetUserList


object) throws IOException {
out.writeInt32(1, object.folderId.getNumber());
String sectionIdVal = object.sectionId;
if (sectionIdVal != null) {
encodeString(out, 2, sectionIdVal);
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(3, offsetVal.intValue());
}
Integer preferredCountVal = object.preferredCount;
if (preferredCountVal != null) {
out.writeInt32(4, preferredCountVal.intValue());
}
String versionVal = object.version;
if (versionVal != null) {
encodeString(out, 5, versionVal);
}
Vector filterList = object.filter;
if (filterList != null) {
for (int c = 0; c < filterList.size(); c++) {
out.writeInt32(6, ((UserListFilter)
filterList.elementAt(c)).getNumber());
}
}
String searchStringVal = object.searchString;
if (searchStringVal != null) {
encodeString(out, 7, searchStringVal);
}
PhotoSize sectionUserPreviewImageSizeVal =
object.sectionUserPreviewImageSize;
if (sectionUserPreviewImageSizeVal != null) {
out.writeBytes(8,
computePhotoSizeSize(sectionUserPreviewImageSizeVal));
encodePhotoSize(out, sectionUserPreviewImageSizeVal);
}
}

private void encodeServerImageAction(CodedOutputStream out, ServerImageAction


object) throws IOException {
out.writeInt32(1, object.action.getNumber());
String imageIdVal = object.imageId;
if (imageIdVal != null) {
encodeString(out, 2, imageIdVal);
}
}

private void encodeServerInitSpotlight(CodedOutputStream out,


ServerInitSpotlight object) throws IOException {
byte[] spotlightServerVal = object.spotlightServer;
if (spotlightServerVal != null) {
out.writeBytes(1, computeByteArraySize(spotlightServerVal));
encodeByteArray(out, spotlightServerVal);
}
}

private void encodeServerInterestsGet(CodedOutputStream out, ServerInterestsGet


object) throws IOException {
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 1, userIdVal);
}
Integer groupIdVal = object.groupId;
if (groupIdVal != null) {
out.writeInt32(2, groupIdVal.intValue());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(3, offsetVal.intValue());
}
Integer limitVal = object.limit;
if (limitVal != null) {
out.writeInt32(4, limitVal.intValue());
}
InterestSortOrder orderVal = object.order;
if (orderVal != null) {
out.writeInt32(5, orderVal.getNumber());
}
}

private void encodeServerLoginByPassword(CodedOutputStream out,


ServerLoginByPassword object) throws IOException {
encodeString(out, 1, object.user);
encodeString(out, 2, object.password);
String appTypeVal = object.appType;
if (appTypeVal != null) {
encodeString(out, 3, appTypeVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 4, userIdVal);
}
String captchaVal = object.captcha;
if (captchaVal != null) {
encodeString(out, 6, captchaVal);
}
}

private void encodeServerOpenChat(CodedOutputStream out, ServerOpenChat object)


throws IOException {
encodeString(out, 1, object.chatInstanceId);
Long lastModifiedVal = object.lastModified;
if (lastModifiedVal != null) {
out.writeInt64(2, lastModifiedVal.longValue());
}
Integer offsetVal = object.offset;
if (offsetVal != null) {
out.writeInt32(3, offsetVal.intValue());
}
FolderTypes folderIdVal = object.folderId;
if (folderIdVal != null) {
out.writeInt32(4, folderIdVal.getNumber());
}
PhotoSize multimediaPreviewImageSizeVal =
object.multimediaPreviewImageSize;
if (multimediaPreviewImageSizeVal != null) {
out.writeBytes(5, computePhotoSizeSize(multimediaPreviewImageSizeVal));
encodePhotoSize(out, multimediaPreviewImageSizeVal);
}
PhotoSize multimediaLargeImageSizeVal = object.multimediaLargeImageSize;
if (multimediaLargeImageSizeVal != null) {
out.writeBytes(6, computePhotoSizeSize(multimediaLargeImageSizeVal));
encodePhotoSize(out, multimediaLargeImageSizeVal);
}
}

private void encodeServerPersonProfileEditForm(CodedOutputStream out,


ServerPersonProfileEditForm object) throws IOException {
Vector typeList = object.type;
if (typeList != null) {
for (int c = 0; c < typeList.size(); c++) {
out.writeInt32(1, ((ProfileOptionType)
typeList.elementAt(c)).getNumber());
}
}
}

private void encodeServerRatePhoto(CodedOutputStream out, ServerRatePhoto


object) throws IOException {
String photoIdVal = object.photoId;
if (photoIdVal != null) {
encodeString(out, 1, photoIdVal);
}
Boolean skipVal = object.skip;
if (skipVal != null) {
out.writeBool(2, skipVal.booleanValue());
}
Integer ratingVal = object.rating;
if (ratingVal != null) {
out.writeInt32(3, ratingVal.intValue());
}
}

private void encodeServerRegistration(CodedOutputStream out, ServerRegistration


object) throws IOException {
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 1, nameVal);
}
SexType genderVal = object.gender;
if (genderVal != null) {
out.writeInt32(2, genderVal.getNumber());
}
String dobVal = object.dob;
if (dobVal != null) {
encodeString(out, 3, dobVal);
}
Integer tiwPhraseIdVal = object.tiwPhraseId;
if (tiwPhraseIdVal != null) {
out.writeInt32(4, tiwPhraseIdVal.intValue());
}
String passwordVal = object.password;
if (passwordVal != null) {
encodeString(out, 5, passwordVal);
}
Boolean preferMaleVal = object.preferMale;
if (preferMaleVal != null) {
out.writeBool(6, preferMaleVal.booleanValue());
}
Boolean preferFemaleVal = object.preferFemale;
if (preferFemaleVal != null) {
out.writeBool(7, preferFemaleVal.booleanValue());
}
String inviteIdVal = object.inviteId;
if (inviteIdVal != null) {
encodeString(out, 8, inviteIdVal);
}
String appIdVal = object.appId;
if (appIdVal != null) {
encodeString(out, 9, appIdVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 10, userIdVal);
}
String emailVal = object.email;
if (emailVal != null) {
encodeString(out, 11, emailVal);
}
String phoneVal = object.phone;
if (phoneVal != null) {
encodeString(out, 12, phoneVal);
}
Integer locationIdVal = object.locationId;
if (locationIdVal != null) {
out.writeInt32(13, locationIdVal.intValue());
}
Boolean phoneConfirmedVal = object.phoneConfirmed;
if (phoneConfirmedVal != null) {
out.writeBool(14, phoneConfirmedVal.booleanValue());
}
}

private void encodeServerRequestAlbumAccess(CodedOutputStream out,


ServerRequestAlbumAccess object) throws IOException {
encodeString(out, 1, object.personId);
encodeString(out, 2, object.albumId);
}

private void encodeServerRequestAlbumAccessLevel(CodedOutputStream out,


ServerRequestAlbumAccessLevel object) throws IOException {
encodeString(out, 1, object.personId);
String albumIdVal = object.albumId;
if (albumIdVal != null) {
encodeString(out, 2, albumIdVal);
}
}

private void encodeServerSectionUserAction(CodedOutputStream out,


ServerSectionUserAction object) throws IOException {
SectionActionType actionVal = object.action;
if (actionVal != null) {
out.writeInt32(1, actionVal.getNumber());
}
FolderTypes folderIdVal = object.folderId;
if (folderIdVal != null) {
out.writeInt32(2, folderIdVal.getNumber());
}
Vector userListList = object.userList;
if (userListList != null) {
for (int c = 0; c < userListList.size(); c++) {
SectionUserActionList userListVal = (SectionUserActionList)
userListList.elementAt(c);
out.writeBytes(3, computeSectionUserActionListSize(userListVal));
encodeSectionUserActionList(out, userListVal);
}
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(4, contextVal.getNumber());
}
}

private void encodeServerSendSlots(CodedOutputStream out, ServerSendSlots


object) throws IOException {
Vector uidList = object.uid;
if (uidList != null) {
for (int c = 0; c < uidList.size(); c++) {
encodeString(out, 1, (String) uidList.elementAt(c));
}
}
Boolean useMineVal = object.useMine;
if (useMineVal != null) {
out.writeBool(2, useMineVal.booleanValue());
}
}

private void encodeServerSendUserReport(CodedOutputStream out,


ServerSendUserReport object) throws IOException {
encodeString(out, 1, object.reportTypeId);
encodeString(out, 2, object.personId);
String commentVal = object.comment;
if (commentVal != null) {
encodeString(out, 3, commentVal);
}
Boolean blockUserVal = object.blockUser;
if (blockUserVal != null) {
out.writeBool(4, blockUserVal.booleanValue());
}
}

private void encodeServerSlotRequestsSent(CodedOutputStream out,


ServerSlotRequestsSent object) throws IOException {
Vector fbIdList = object.fbId;
if (fbIdList != null) {
for (int c = 0; c < fbIdList.size(); c++) {
encodeString(out, 1, (String) fbIdList.elementAt(c));
}
}
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 2, uidVal);
}
}

private void encodeServerStartExternalProviderImport(CodedOutputStream out,


ServerStartExternalProviderImport object) throws IOException {
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(1, contextVal.getNumber());
}
ExternalProviderSecurityCredentials authCredentialsVal =
object.authCredentials;
if (authCredentialsVal != null) {
out.writeBytes(2,
computeExternalProviderSecurityCredentialsSize(authCredentialsVal));
encodeExternalProviderSecurityCredentials(out, authCredentialsVal);
}
StartContactImport startContactImportDataVal =
object.startContactImportData;
if (startContactImportDataVal != null) {
out.writeBytes(3,
computeStartContactImportSize(startContactImportDataVal));
encodeStartContactImport(out, startContactImportDataVal);
}
StartPhotoImport startPhotoImportDataVal = object.startPhotoImportData;
if (startPhotoImportDataVal != null) {
out.writeBytes(4,
computeStartPhotoImportSize(startPhotoImportDataVal));
encodeStartPhotoImport(out, startPhotoImportDataVal);
}
}

private void encodeServerStartFriendsImport(CodedOutputStream out,


ServerStartFriendsImport object) throws IOException {
String providerIdVal = object.providerId;
if (providerIdVal != null) {
encodeString(out, 1, providerIdVal);
}
FriendsImportSecurityCredentials credentialsVal = object.credentials;
if (credentialsVal != null) {
out.writeBytes(2,
computeFriendsImportSecurityCredentialsSize(credentialsVal));
encodeFriendsImportSecurityCredentials(out, credentialsVal);
}
Vector contactList = object.contact;
if (contactList != null) {
for (int c = 0; c < contactList.size(); c++) {
PhonebookContact contactVal = (PhonebookContact)
contactList.elementAt(c);
out.writeBytes(3, computePhonebookContactSize(contactVal));
encodePhonebookContact(out, contactVal);
}
}
FriendsImportFlow flowVal = object.flow;
if (flowVal != null) {
out.writeInt32(4, flowVal.getNumber());
}
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 5, personIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(7, contextVal.getNumber());
}
ExternalProviderSecurityCredentials authCredentialsVal =
object.authCredentials;
if (authCredentialsVal != null) {
out.writeBytes(8,
computeExternalProviderSecurityCredentialsSize(authCredentialsVal));
encodeExternalProviderSecurityCredentials(out, authCredentialsVal);
}
}

private void encodeServerUpdateLocation(CodedOutputStream out,


ServerUpdateLocation object) throws IOException {
int c;
Vector locationList = object.location;
if (locationList != null) {
for (c = 0; c < locationList.size(); c++) {
GeoLocation locationVal = (GeoLocation) locationList.elementAt(c);
out.writeBytes(1, computeGeoLocationSize(locationVal));
encodeGeoLocation(out, locationVal);
}
}
Vector cellIdList = object.cellId;
if (cellIdList != null) {
for (c = 0; c < cellIdList.size(); c++) {
CellID cellIdVal = (CellID) cellIdList.elementAt(c);
out.writeBytes(2, computeCellIDSize(cellIdVal));
encodeCellID(out, cellIdVal);
}
}
Vector androidWifisList = object.androidWifis;
if (androidWifisList != null) {
for (c = 0; c < androidWifisList.size(); c++) {
AndroidWifi androidWifisVal = (AndroidWifi)
androidWifisList.elementAt(c);
out.writeBytes(4, computeAndroidWifiSize(androidWifisVal));
encodeAndroidWifi(out, androidWifisVal);
}
}
}

private void encodeServerUpdateSession(CodedOutputStream out,


ServerUpdateSession object) throws IOException {
String affiliateVal = object.affiliate;
if (affiliateVal != null) {
encodeString(out, 1, affiliateVal);
}
String apsTokenVal = object.apsToken;
if (apsTokenVal != null) {
encodeString(out, 2, apsTokenVal);
}
String deviceRegidVal = object.deviceRegid;
if (deviceRegidVal != null) {
encodeString(out, 3, deviceRegidVal);
}
String msPushChannelUriVal = object.msPushChannelUri;
if (msPushChannelUriVal != null) {
encodeString(out, 4, msPushChannelUriVal);
}
String userIdVal = object.userId;
if (userIdVal != null) {
encodeString(out, 5, userIdVal);
}
}
private void encodeServerUploadPhoto(CodedOutputStream out, ServerUploadPhoto
object) throws IOException {
String albumIdVal = object.albumId;
if (albumIdVal != null) {
encodeString(out, 1, albumIdVal);
}
Object photoVal = object.photo;
if (photoVal != null) {
out.writeBytes(3, computeByteArraySize(photoVal));
encodeByteArray(out, photoVal);
}
PhotoSourceType photoSourceVal = object.photoSource;
if (photoSourceVal != null) {
out.writeInt32(4, photoSourceVal.getNumber());
}
String guidVal = object.guid;
if (guidVal != null) {
encodeString(out, 5, guidVal);
}
FeatureType uploadTriggerVal = object.uploadTrigger;
if (uploadTriggerVal != null) {
out.writeInt32(6, uploadTriggerVal.getNumber());
}
String photoToReplaceVal = object.photoToReplace;
if (photoToReplaceVal != null) {
encodeString(out, 7, photoToReplaceVal);
}
String photoIdVal = object.photoId;
if (photoIdVal != null) {
encodeString(out, 8, photoIdVal);
}
}

private void encodeServerUserRemoveVerify(CodedOutputStream out,


ServerUserRemoveVerify object) throws IOException {
out.writeInt32(1, object.verificationType.getNumber());
}

private void encodeServerUserVerifiedGet(CodedOutputStream out,


ServerUserVerifiedGet object) throws IOException {
String contextUserIdVal = object.contextUserId;
if (contextUserIdVal != null) {
encodeString(out, 2, contextUserIdVal);
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(3, contextVal.getNumber());
}
}

private void encodeServerUserVerify(CodedOutputStream out, ServerUserVerify


object) throws IOException {
out.writeInt32(1, object.type.getNumber());
String tokenVal = object.token;
if (tokenVal != null) {
encodeString(out, 2, tokenVal);
}
UserVerifyAdditionalData additionalDataVal = object.additionalData;
if (additionalDataVal != null) {
out.writeBytes(3,
computeUserVerifyAdditionalDataSize(additionalDataVal));
encodeUserVerifyAdditionalData(out, additionalDataVal);
}
}

private void encodeSharingStats(CodedOutputStream out, SharingStats object)


throws IOException {
String awardIdVal = object.awardId;
if (awardIdVal != null) {
encodeString(out, 1, awardIdVal);
}
String providerIdVal = object.providerId;
if (providerIdVal != null) {
encodeString(out, 2, providerIdVal);
}
SharingStatsType sharingStatsTypeVal = object.sharingStatsType;
if (sharingStatsTypeVal != null) {
out.writeInt32(3, sharingStatsTypeVal.getNumber());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(4, contextVal.getNumber());
}
}

private void encodeSlotAvailabilityInfo(CodedOutputStream out,


SlotAvailabilityInfo object) throws IOException {
SlotAvailabilityState stateVal = object.state;
if (stateVal != null) {
out.writeInt32(1, stateVal.getNumber());
}
Integer totalSlotsVal = object.totalSlots;
if (totalSlotsVal != null) {
out.writeInt32(2, totalSlotsVal.intValue());
}
Integer usedSlotsVal = object.usedSlots;
if (usedSlotsVal != null) {
out.writeInt32(3, usedSlotsVal.intValue());
}
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
encodeString(out, 4, displayMessageVal);
}
}

private void encodeSocialFriendsConnection(CodedOutputStream out,


SocialFriendsConnection object) throws IOException {
int c;
Vector friendsList = object.friends;
if (friendsList != null) {
for (c = 0; c < friendsList.size(); c++) {
PhonebookContact friendsVal = (PhonebookContact)
friendsList.elementAt(c);
out.writeBytes(1, computePhonebookContactSize(friendsVal));
encodePhonebookContact(out, friendsVal);
}
}
Vector firstConnectionProviderUrlList = object.firstConnectionProviderUrl;
if (firstConnectionProviderUrlList != null) {
for (c = 0; c < firstConnectionProviderUrlList.size(); c++) {
encodeString(out, 2, (String)
firstConnectionProviderUrlList.elementAt(c));
}
}
}

private void encodeSocialFriendsConnectionsBlock(CodedOutputStream out,


SocialFriendsConnectionsBlock object) throws IOException {
int c;
Integer totalVal = object.total;
if (totalVal != null) {
out.writeInt32(1, totalVal.intValue());
}
Vector connectionsList = object.connections;
if (connectionsList != null) {
for (c = 0; c < connectionsList.size(); c++) {
SocialFriendsConnection connectionsVal = (SocialFriendsConnection)
connectionsList.elementAt(c);
out.writeBytes(2,
computeSocialFriendsConnectionSize(connectionsVal));
encodeSocialFriendsConnection(out, connectionsVal);
}
}
Vector providersMainList = object.providersMain;
if (providersMainList != null) {
for (c = 0; c < providersMainList.size(); c++) {
FriendsImportProvider providersMainVal = (FriendsImportProvider)
providersMainList.elementAt(c);
out.writeBytes(3,
computeFriendsImportProviderSize(providersMainVal));
encodeFriendsImportProvider(out, providersMainVal);
}
}
Vector providersMoreList = object.providersMore;
if (providersMoreList != null) {
for (c = 0; c < providersMoreList.size(); c++) {
FriendsImportProvider providersMoreVal = (FriendsImportProvider)
providersMoreList.elementAt(c);
out.writeBytes(4,
computeFriendsImportProviderSize(providersMoreVal));
encodeFriendsImportProvider(out, providersMoreVal);
}
}
String providersBlockTitleVal = object.providersBlockTitle;
if (providersBlockTitleVal != null) {
encodeString(out, 5, providersBlockTitleVal);
}
SocialConnectionStatus statusVal = object.status;
if (statusVal != null) {
out.writeInt32(6, statusVal.getNumber());
}
PromoActionsBlock promoActionBlockVal = object.promoActionBlock;
if (promoActionBlockVal != null) {
out.writeBytes(7, computePromoActionsBlockSize(promoActionBlockVal));
encodePromoActionsBlock(out, promoActionBlockVal);
}
Vector circlesList = object.circles;
if (circlesList != null) {
for (c = 0; c < circlesList.size(); c++) {
CircleDescription circlesVal = (CircleDescription)
circlesList.elementAt(c);
out.writeBytes(8, computeCircleDescriptionSize(circlesVal));
encodeCircleDescription(out, circlesVal);
}
}
String connectionsBlockTitleVal = object.connectionsBlockTitle;
if (connectionsBlockTitleVal != null) {
encodeString(out, 9, connectionsBlockTitleVal);
}
String legalTextVal = object.legalText;
if (legalTextVal != null) {
encodeString(out, 10, legalTextVal);
}
String phonebookImportLegalNoticeTitleVal =
object.phonebookImportLegalNoticeTitle;
if (phonebookImportLegalNoticeTitleVal != null) {
encodeString(out, 11, phonebookImportLegalNoticeTitleVal);
}
String phonebookImportLegalNoticeMessageVal =
object.phonebookImportLegalNoticeMessage;
if (phonebookImportLegalNoticeMessageVal != null) {
encodeString(out, 12, phonebookImportLegalNoticeMessageVal);
}
Vector moreConnectionsList = object.moreConnections;
if (moreConnectionsList != null) {
for (c = 0; c < moreConnectionsList.size(); c++) {
SocialFriendsConnection moreConnectionsVal =
(SocialFriendsConnection) moreConnectionsList.elementAt(c);
out.writeBytes(13,
computeSocialFriendsConnectionSize(moreConnectionsVal));
encodeSocialFriendsConnection(out, moreConnectionsVal);
}
}
Vector mainProvidersList = object.mainProviders;
if (mainProvidersList != null) {
for (c = 0; c < mainProvidersList.size(); c++) {
ExternalProvider mainProvidersVal = (ExternalProvider)
mainProvidersList.elementAt(c);
out.writeBytes(14, computeExternalProviderSize(mainProvidersVal));
encodeExternalProvider(out, mainProvidersVal);
}
}
Vector moreProvidersList = object.moreProviders;
if (moreProvidersList != null) {
for (c = 0; c < moreProvidersList.size(); c++) {
ExternalProvider moreProvidersVal = (ExternalProvider)
moreProvidersList.elementAt(c);
out.writeBytes(15, computeExternalProviderSize(moreProvidersVal));
encodeExternalProvider(out, moreProvidersVal);
}
}
}

private void encodeSocialNetworkInfo(CodedOutputStream out, SocialNetworkInfo


object) throws IOException {
ExternalProvider externalProviderVal = object.externalProvider;
if (externalProviderVal != null) {
out.writeBytes(1, computeExternalProviderSize(externalProviderVal));
encodeExternalProvider(out, externalProviderVal);
}
String urlVal = object.url;
if (urlVal != null) {
encodeString(out, 2, urlVal);
}
String handleVal = object.handle;
if (handleVal != null) {
encodeString(out, 3, handleVal);
}
}

private void encodeSocialSharingProvider(CodedOutputStream out,


SocialSharingProvider object) throws IOException {
int c;
String sharingDescriptionVal = object.sharingDescription;
if (sharingDescriptionVal != null) {
encodeString(out, 1, sharingDescriptionVal);
}
String sharingUrlVal = object.sharingUrl;
if (sharingUrlVal != null) {
encodeString(out, 2, sharingUrlVal);
}
FriendsImportProvider providerDetailsVal = object.providerDetails;
if (providerDetailsVal != null) {
out.writeBytes(3,
computeFriendsImportProviderSize(providerDetailsVal));
encodeFriendsImportProvider(out, providerDetailsVal);
}
Vector sharingImagesList = object.sharingImages;
if (sharingImagesList != null) {
for (c = 0; c < sharingImagesList.size(); c++) {
encodeString(out, 4, (String) sharingImagesList.elementAt(c));
}
}
ExternalProvider externalProviderDetailsVal =
object.externalProviderDetails;
if (externalProviderDetailsVal != null) {
out.writeBytes(5,
computeExternalProviderSize(externalProviderDetailsVal));
encodeExternalProvider(out, externalProviderDetailsVal);
}
Vector displayImagesList = object.displayImages;
if (displayImagesList != null) {
for (c = 0; c < displayImagesList.size(); c++) {
encodeString(out, 6, (String) displayImagesList.elementAt(c));
}
}
Vector tagsList = object.tags;
if (tagsList != null) {
for (c = 0; c < tagsList.size(); c++) {
Tag tagsVal = (Tag) tagsList.elementAt(c);
out.writeBytes(7, computeTagSize(tagsVal));
encodeTag(out, tagsVal);
}
}
Vector sharingVideosList = object.sharingVideos;
if (sharingVideosList != null) {
for (c = 0; c < sharingVideosList.size(); c++) {
encodeString(out, 8, (String) sharingVideosList.elementAt(c));
}
}
Vector displayStringList = object.displayString;
if (displayStringList != null) {
for (c = 0; c < displayStringList.size(); c++) {
encodeString(out, 9, (String) displayStringList.elementAt(c));
}
}
}

private void encodeSpotlightCommand(CodedOutputStream out, SpotlightCommand


object) throws IOException {
Vector itemsList = object.items;
if (itemsList != null) {
for (int c = 0; c < itemsList.size(); c++) {
SpotlightCommandItem itemsVal = (SpotlightCommandItem)
itemsList.elementAt(c);
out.writeBytes(1, computeSpotlightCommandItemSize(itemsVal));
encodeSpotlightCommandItem(out, itemsVal);
}
}
}

private void encodeSpotlightCommandItem(CodedOutputStream out,


SpotlightCommandItem object) throws IOException {
out.writeInt32(1, object.type.getNumber());
SpotlightScroll scrollVal = object.scroll;
if (scrollVal != null) {
out.writeBytes(2, computeSpotlightScrollSize(scrollVal));
encodeSpotlightScroll(out, scrollVal);
}
SpotlightDiffAdd addVal = object.add;
if (addVal != null) {
out.writeBytes(3, computeSpotlightDiffAddSize(addVal));
encodeSpotlightDiffAdd(out, addVal);
}
SpotlightDiffRemove removeVal = object.remove;
if (removeVal != null) {
out.writeBytes(4, computeSpotlightDiffRemoveSize(removeVal));
encodeSpotlightDiffRemove(out, removeVal);
}
SpotlightDiffUpdate updateVal = object.update;
if (updateVal != null) {
out.writeBytes(5, computeSpotlightDiffUpdateSize(updateVal));
encodeSpotlightDiffUpdate(out, updateVal);
}
SpotlightFullState fullStateVal = object.fullState;
if (fullStateVal != null) {
out.writeBytes(6, computeSpotlightFullStateSize(fullStateVal));
encodeSpotlightFullState(out, fullStateVal);
}
}

private void encodeSpotlightDiffAdd(CodedOutputStream out, SpotlightDiffAdd


object) throws IOException {
out.writeInt64(1, object.afterSpotlightId);
Vector userList = object.user;
if (userList != null) {
for (int c = 0; c < userList.size(); c++) {
SectionUser userVal = (SectionUser) userList.elementAt(c);
out.writeBytes(2, computeSectionUserSize(userVal));
encodeSectionUser(out, userVal);
}
}
}

private void encodeSpotlightDiffRemove(CodedOutputStream out,


SpotlightDiffRemove object) throws IOException {
out.writeInt64(1, object.spotlightId);
}

private void encodeSpotlightDiffUpdate(CodedOutputStream out,


SpotlightDiffUpdate object) throws IOException {
SectionUser changedDataVal = object.changedData;
out.writeBytes(1, computeSectionUserSize(changedDataVal));
encodeSectionUser(out, changedDataVal);
}

private void encodeSpotlightFullState(CodedOutputStream out, SpotlightFullState


object) throws IOException {
Vector userList = object.user;
if (userList != null) {
for (int c = 0; c < userList.size(); c++) {
SectionUser userVal = (SectionUser) userList.elementAt(c);
out.writeBytes(1, computeSectionUserSize(userVal));
encodeSectionUser(out, userVal);
}
}
}

private void encodeSpotlightScroll(CodedOutputStream out, SpotlightScroll


object) throws IOException {
out.writeInt64(1, object.spotlightId);
}

private void encodeSpotlightServerData(CodedOutputStream out,


SpotlightServerData object) throws IOException {
encodeString(out, 1, object.serverId);
out.writeInt32(2, object.cityId);
out.writeInt32(3, object.langId);
Integer platformIdVal = object.platformId;
if (platformIdVal != null) {
out.writeInt32(4, platformIdVal.intValue());
}
}

private void encodeSppPurchaseStatistic(CodedOutputStream out,


SppPurchaseStatistic object) throws IOException {
FeatureType sourceFeatureVal = object.sourceFeature;
if (sourceFeatureVal != null) {
out.writeInt32(1, sourceFeatureVal.getNumber());
}
Boolean purchaseCompleteVal = object.purchaseComplete;
if (purchaseCompleteVal != null) {
out.writeBool(2, purchaseCompleteVal.booleanValue());
}
}

private void encodeStarRatingStats(CodedOutputStream out, StarRatingStats


object) throws IOException {
Boolean dismissedVal = object.dismissed;
if (dismissedVal != null) {
out.writeBool(1, dismissedVal.booleanValue());
}
Boolean sharedVal = object.shared;
if (sharedVal != null) {
out.writeBool(2, sharedVal.booleanValue());
}
}

private void encodeStartContactImport(CodedOutputStream out, StartContactImport


object) throws IOException {
Vector contactList = object.contact;
if (contactList != null) {
for (int c = 0; c < contactList.size(); c++) {
PhonebookContact contactVal = (PhonebookContact)
contactList.elementAt(c);
out.writeBytes(1, computePhonebookContactSize(contactVal));
encodePhonebookContact(out, contactVal);
}
}
FriendsImportFlow flowVal = object.flow;
if (flowVal != null) {
out.writeInt32(2, flowVal.getNumber());
}
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 3, personIdVal);
}
}

private void encodeStartPhotoImport(CodedOutputStream out, StartPhotoImport


object) throws IOException {
AlbumType albumTypeVal = object.albumType;
if (albumTypeVal != null) {
out.writeInt32(1, albumTypeVal.getNumber());
}
}

private void encodeStartupSettings(CodedOutputStream out, StartupSettings


object) throws IOException {
Vector providersList = object.providers;
if (providersList != null) {
for (int c = 0; c < providersList.size(); c++) {
ExternalStatsProvider providersVal = (ExternalStatsProvider)
providersList.elementAt(c);
out.writeBytes(1, computeExternalStatsProviderSize(providersVal));
encodeExternalStatsProvider(out, providersVal);
}
}
}

private void encodeSystemNotification(CodedOutputStream out, SystemNotification


object) throws IOException {
out.writeInt32(1, object.id.getNumber());
String registrationMethodVal = object.registrationMethod;
if (registrationMethodVal != null) {
encodeString(out, 2, registrationMethodVal);
}
}

private void encodeTag(CodedOutputStream out, Tag object) throws IOException {


Point positionVal = object.position;
if (positionVal != null) {
out.writeBytes(1, computePointSize(positionVal));
encodePoint(out, positionVal);
}
String uidVal = object.uid;
if (uidVal != null) {
encodeString(out, 2, uidVal);
}
}

private void encodeTiwIdea(CodedOutputStream out, TiwIdea object) throws


IOException {
Integer tiwPhraseIdVal = object.tiwPhraseId;
if (tiwPhraseIdVal != null) {
out.writeInt32(1, tiwPhraseIdVal.intValue());
}
String tiwPhraseVal = object.tiwPhrase;
if (tiwPhraseVal != null) {
encodeString(out, 2, tiwPhraseVal);
}
Boolean showInterestedInVal = object.showInterestedIn;
if (showInterestedInVal != null) {
out.writeBool(3, showInterestedInVal.booleanValue());
}
}

private void encodeTiwIdeas(CodedOutputStream out, TiwIdeas object) throws


IOException {
Vector tiwIdeasList = object.tiwIdeas;
if (tiwIdeasList != null) {
for (int c = 0; c < tiwIdeasList.size(); c++) {
TiwIdea tiwIdeasVal = (TiwIdea) tiwIdeasList.elementAt(c);
out.writeBytes(2, computeTiwIdeaSize(tiwIdeasVal));
encodeTiwIdea(out, tiwIdeasVal);
}
}
}

private void encodeTrustedNetworkStats(CodedOutputStream out,


TrustedNetworkStats object) throws IOException {
String providerIdVal = object.providerId;
if (providerIdVal != null) {
encodeString(out, 2, providerIdVal);
}
String personIdVal = object.personId;
if (personIdVal != null) {
encodeString(out, 3, personIdVal);
}
ClientSource sourceScreenVal = object.sourceScreen;
if (sourceScreenVal != null) {
out.writeInt32(4, sourceScreenVal.getNumber());
}
}

private void encodeTrustedPromoBlock(CodedOutputStream out, TrustedPromoBlock


object) throws IOException {
int c;
SocialConnectionStatus statusVal = object.status;
if (statusVal != null) {
out.writeInt32(1, statusVal.getNumber());
}
Vector circlesList = object.circles;
if (circlesList != null) {
for (c = 0; c < circlesList.size(); c++) {
CircleDescription circlesVal = (CircleDescription)
circlesList.elementAt(c);
out.writeBytes(2, computeCircleDescriptionSize(circlesVal));
encodeCircleDescription(out, circlesVal);
}
}
String potentialFriendsVal = object.potentialFriends;
if (potentialFriendsVal != null) {
encodeString(out, 3, potentialFriendsVal);
}
Vector displayImagesList = object.displayImages;
if (displayImagesList != null) {
for (c = 0; c < displayImagesList.size(); c++) {
encodeString(out, 4, (String) displayImagesList.elementAt(c));
}
}
PromoActionsBlock promoActionBlockVal = object.promoActionBlock;
if (promoActionBlockVal != null) {
out.writeBytes(5, computePromoActionsBlockSize(promoActionBlockVal));
encodePromoActionsBlock(out, promoActionBlockVal);
}
}

private void encodeTuple(CodedOutputStream out, Tuple object) throws


IOException {
Object keyVal = object.key;
out.writeBytes(1, computeAnonymousObjectSize(keyVal));
encodeAnonymousObject(out, keyVal);
Object valueVal = object.value;
out.writeBytes(2, computeAnonymousObjectSize(valueVal));
encodeAnonymousObject(out, valueVal);
}

private void encodeUnsubscribeInfo(CodedOutputStream out, UnsubscribeInfo


object) throws IOException {
UnsubscribeFlow flowVal = object.flow;
if (flowVal != null) {
out.writeInt32(1, flowVal.getNumber());
}
String infoVal = object.info;
if (infoVal != null) {
encodeString(out, 2, infoVal);
}
String urlVal = object.url;
if (urlVal != null) {
encodeString(out, 3, urlVal);
}
UnsubscribeInfoClientApi clientApiDataVal = object.clientApiData;
if (clientApiDataVal != null) {
out.writeBytes(4,
computeUnsubscribeInfoClientApiSize(clientApiDataVal));
encodeUnsubscribeInfoClientApi(out, clientApiDataVal);
}
}

private void encodeUnsubscribeInfoClientApi(CodedOutputStream out,


UnsubscribeInfoClientApi object) throws IOException {
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
out.writeInt32(1, providerVal.getNumber());
}
String providerKeyVal = object.providerKey;
if (providerKeyVal != null) {
encodeString(out, 2, providerKeyVal);
}
String transactionIdVal = object.transactionId;
if (transactionIdVal != null) {
encodeString(out, 3, transactionIdVal);
}
}

private void encodeUpdatedProfileValues(CodedOutputStream out,


UpdatedProfileValues object) throws IOException {
String profileOptionIdVal = object.profileOptionId;
if (profileOptionIdVal != null) {
encodeString(out, 1, profileOptionIdVal);
}
String profileOptionValueVal = object.profileOptionValue;
if (profileOptionValueVal != null) {
encodeString(out, 2, profileOptionValueVal);
}
}

private void encodeUserBasicInfo(CodedOutputStream out, UserBasicInfo object)


throws IOException {
String nameVal = object.name;
if (nameVal != null) {
encodeString(out, 1, nameVal);
}
SexType genderVal = object.gender;
if (genderVal != null) {
out.writeInt32(2, genderVal.getNumber());
}
String dobVal = object.dob;
if (dobVal != null) {
encodeString(out, 3, dobVal);
}
}

private void encodeUserReportType(CodedOutputStream out, UserReportType object)


throws IOException {
encodeString(out, 1, object.uid);
Long dateModifiedVal = object.dateModified;
if (dateModifiedVal != null) {
out.writeInt64(2, dateModifiedVal.longValue());
}
encodeString(out, 3, object.name);
encodeString(out, 4, object.introText);
Boolean messageRequiredVal = object.messageRequired;
if (messageRequiredVal != null) {
out.writeBool(5, messageRequiredVal.booleanValue());
}
}

private void encodeUserVerificationMethodStatus(CodedOutputStream out,


UserVerificationMethodStatus object) throws IOException {
out.writeInt32(1, object.type.getNumber());
encodeString(out, 2, object.name);
String displayMessageVal = object.displayMessage;
if (displayMessageVal != null) {
encodeString(out, 3, displayMessageVal);
}
String verificationDataVal = object.verificationData;
if (verificationDataVal != null) {
encodeString(out, 4, verificationDataVal);
}
Boolean isConnectedVal = object.isConnected;
if (isConnectedVal != null) {
out.writeBool(5, isConnectedVal.booleanValue());
}
Boolean isConfirmedVal = object.isConfirmed;
if (isConfirmedVal != null) {
out.writeBool(6, isConfirmedVal.booleanValue());
}
}

private void encodeUserVerifyAdditionalData(CodedOutputStream out,


UserVerifyAdditionalData object) throws IOException {
String vkontakteRedirectUrlVal = object.vkontakteRedirectUrl;
if (vkontakteRedirectUrlVal != null) {
encodeString(out, 1, vkontakteRedirectUrlVal);
}
String phonePinVal = object.phonePin;
if (phonePinVal != null) {
encodeString(out, 2, phonePinVal);
}
Boolean phonePinRequestVal = object.phonePinRequest;
if (phonePinRequestVal != null) {
out.writeBool(3, phonePinRequestVal.booleanValue());
}
}

private void encodeMessage(CodedOutputStream out, Hashtable object) throws


IOException {
out.writeInt32(1, ((MessageType) object.get("name")).getNumber());
Object bodyVal = object.get("body");
if (bodyVal != null) {
out.writeBytes(2, computeAnonymousObjectSize(bodyVal));
encodeAnonymousObject(out, bodyVal);
}
}
private void encodeServerRequestPicture(CodedOutputStream out, Hashtable
object) throws IOException {
encodeString(out, 1, (String) object.get("picture_uri"));
String shortIdVal = (String) object.get("short_id");
if (shortIdVal != null) {
encodeString(out, 2, shortIdVal);
}
Boolean respondIfNotFoundVal = (Boolean)
object.get("respond_if_not_found");
if (respondIfNotFoundVal != null) {
out.writeBool(3, respondIfNotFoundVal.booleanValue());
}
Integer preferredWidthVal = (Integer) object.get("preferred_width");
if (preferredWidthVal != null) {
out.writeInt32(4, preferredWidthVal.intValue());
}
Integer preferredHeightVal = (Integer) object.get("preferred_height");
if (preferredHeightVal != null) {
out.writeInt32(5, preferredHeightVal.intValue());
}
}

private void encodeServerGetRewardedVideos(CodedOutputStream out,


ServerGetRewardedVideos object) throws IOException {
Vector requests = object.requests;
if (requests != null) {
for (int c = 0; c < requests.size(); c++) {
RewardedVideoRequest requestVal = (RewardedVideoRequest)
requests.elementAt(c);
out.writeBytes(1, computeRewardedVideoRequestSize(requestVal));
encodeRewardedVideoRequest(out, requestVal);
}
}
}

private void encodeRewardedVideoRequest(CodedOutputStream out,


RewardedVideoRequest object) throws IOException {
PaymentProviderType providerVal = object.provider;
if (providerVal != null) {
out.writeInt32(1, providerVal.getNumber());
}
PaymentProductType productTypeVal = object.productType;
if (productTypeVal != null) {
out.writeInt32(2, productTypeVal.getNumber());
}
RewardedVideoFlowType flowVal = object.flow;
if (flowVal != null) {
out.writeInt32(3, flowVal.getNumber());
}
Boolean countdownSupportedVal = object.countdownSupported;
if (countdownSupportedVal != null) {
out.writeBool(4, countdownSupportedVal.booleanValue());
}
ClientSource contextVal = object.context;
if (contextVal != null) {
out.writeInt32(5, contextVal.getNumber());
}

}
}